# Node-red-ui-table fails when httpNodeAuth enabled

**URL:** <https://discourse.nodered.org/t/node-red-ui-table-fails-when-httpnodeauth-enabled/22425>\
**Category:** Dashboard\
**Created:** [29 February 2020 20:58 UTC](https://discourse.nodered.org/t/node-red-ui-table-fails-when-httpnodeauth-enabled/22425 "2020-02-29T20:58:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [29 February 2020 20:58 UTC](https://discourse.nodered.org/t/node-red-ui-table-fails-when-httpnodeauth-enabled/22425/1 "2020-02-29T20:58:42Z")

</div>

I've just palette installed `node-red-ui-table`, restarted node-RED, and tried one of the example, but the table was not rendered.  
Checking my browser console, I see the following errors;

![tabulator](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/d/9d8dc7138e3906c0f927c6cf681b051eb0cf79df.jpeg)  
 ![tabulator2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/8/787dc7c014e7b0c2873958b75b8ba8a3d158ea73.jpeg)  
If I disable `httpNodeAuth` in node-RED settings, then the table renders as expected and no console errors. Re-enabling `httpNodeAuth` again stops the table rendering and I again get console errors.

Sounds similar to the issue reported in the [node-red-contrib-contextmenu](https://discourse.nodered.org/t/announce-node-red-contrib-ui-contextmenu/16211/22) thread.

_For info,_ my node-RED is script installed

- Node-RED version: v1.0.3
- Node.js version: v10.19.0
- Dashboard version 2.19.4
- Oracle Linux 4.14.35

But other than adding `adminAuth` & `httpNodeAuth` , it's a vanilla installation.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 March 2020 15:06 UTC](https://discourse.nodered.org/t/node-red-ui-table-fails-when-httpnodeauth-enabled/22425/2 "2020-03-01T15:06:41Z")

</div>

Do these nodes present an API attached to the Editor ExpressJS app? If so, is this related to the problem found in uibuilder recently?

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [1 March 2020 15:10 UTC](https://discourse.nodered.org/t/node-red-ui-table-fails-when-httpnodeauth-enabled/22425/3 "2020-03-01T15:10:10Z")

</div>

For `node-red-node-ui-table`, the path that is failing is served as follows:

> <https://github.com/node-red/node-red-ui-nodes/blob/6a57e731a8be7e6c352aa08bd4113c4c11d9f2b2/node-red-node-ui-table/node.js#L217-L224>

So on `RED.httpNode`. There is no authentication of any kind set on this endpoint, as it is serving static, supporting, files. My gut feeling says it's related to both the uibuilder issue and the one Bart is currently observing in one of his nodes, but I haven't managed to work through the whole debugging yet.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [1 March 2020 22:03 UTC](https://discourse.nodered.org/t/node-red-ui-table-fails-when-httpnodeauth-enabled/22425/4 "2020-03-01T22:03:19Z")

</div>

Despite clearing the browser cache & using an incognito browser, the problem persisted, and was repeatable...

However, after manually deleting the node-RED browser manifest via `chrome://appcache-internals/#` the libraries now load OK, and both this node, and `node-red-contrib-ui-contextmenu` work OK.

> [@\[Announce\] node-red-contrib-ui-contextmenu](https://discourse.nodered.org/t/announce-node-red-contrib-ui-contextmenu/16211/22):
>
> Sorry to be the one to say (again!!) @BartButenaers but it's not working here.. slightly_frowning_face I've configured the node as per the readme, using a simple fixed menu, but it does not appear in the dashboard group. Checking my browser console, I see the following; If I try and load https://nodered.digitalnut.co.uk:8443/ui/ui\_context\_menu/contextmenu.js?\_=1582707759368 in a browser (as per the 401 error above) I get a prompt for auth. If I enter my user/password, then the [con…](https://github.com/bartbutenaers/node-red-contrib-ui-contextmenu/blob/master/lib/contextmenu.js)

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [15 March 2020 22:06 UTC](https://discourse.nodered.org/t/node-red-ui-table-fails-when-httpnodeauth-enabled/22425/5 "2020-03-15T22:06:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
