# Debug node doesn't work properly when authentication is configured

**URL:** <https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306>\
**Category:** General\
**Created:** [17 June 2019 07:01 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306 "2019-06-17T07:01:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fangzhu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fangzhu/32/5796_2.png) [@fangzhu](https://discourse.nodered.org/u/fangzhu)\
**Post date:** [17 June 2019 07:01 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306/1 "2019-06-17T07:01:56Z")

</div>

debug node stops displaying information to debug window after we set up authentication. Did anyone encounter this issue? I suspect it is a configuration issue where host name was not set up property, but I have checked all host names and it looked fine.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [17 June 2019 07:03 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306/2 "2019-06-17T07:03:34Z")

</div>

Hi.

Sorry but I think you may need to supply a screen shot to show what you mean.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [17 June 2019 07:06 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306/3 "2019-06-17T07:06:10Z")

</div>

Hi @fangzhu - do you mean the debug sidebar panel or the separate window you can open for Debug?

Both are working fine here.

How exactly have you setup authentication? Have you modified httpAdminRoot or httpNodeRoot at all? Any more specific information you can share about how you have it configured?

---

<div class="post-metadata">

**Author:** ![fangzhu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fangzhu/32/5796_2.png) [@fangzhu](https://discourse.nodered.org/u/fangzhu)\
**Post date:** [17 June 2019 07:33 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306/4 "2019-06-17T07:33:07Z")

</div>

@knolleary @Trying_to_learn  
Sorry that I didn't make it clear.  
I mean the sidebar panel, it supposed to display debug log when I add debug node into my flow and it worked fine until I added following settings in my settings.js

```auto
adminAuth: {
    type: "credentials",
    users: [{
        username: "user",
        password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
        permissions: "*"
    }],
},

```

If I remove the setting, it will work just as before.  
And this problem only happens to the "debug window", the log was property output into "system console" even after adding the adminAuth configuration.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [17 June 2019 07:42 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306/5 "2019-06-17T07:42:25Z")

</div>

I am not an expert.

But things that are going to be asked:

Version of Node-Red.  
Browser being used.  
O/S.  
(and possibly more of which I can't think just now.)

And maybe a couple of screen shots showing what it looks like.  
But that is just for interest.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [17 June 2019 08:06 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306/6 "2019-06-17T08:06:14Z")

</div>

A screenshot of a debug sidebar without any debug messages in it is not going to tell us anything.

@fangzhu what versions of node.js and Node-RED are you using? Are there any error messages in the browser's JavaScript console?

---

<div class="post-metadata">

**Author:** ![fangzhu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fangzhu/32/5796_2.png) [@fangzhu](https://discourse.nodered.org/u/fangzhu)\
**Post date:** [17 June 2019 11:21 UTC](https://discourse.nodered.org/t/debug-node-doesnt-work-properly-when-authentication-is-configured/12306/7 "2019-06-17T11:21:25Z")

</div>

@knolleary I checked the console, and there was no errors at all.  
We are using Node-RED version: v0.19.5, Node.js version: v8.15.0, running on redhat OS. This problem occurs to multiple browsers (we typically use Chrome)
