Cannot run Node RED - 500 Internal Server Error

Hi,
I have running HA in docker on synology nas, and Node RED installed as add on in HA.
I can run Node RED directly in HA. but if i want to use my local IP with default port i am getting error

500 Internal Server Error

nginx

Could you please help me what could be set wrongly?

Node RED log:

routine 0:
	[C]: in function 'error'
	/usr/share/lua/common/resty/core/request.lua:124: in function 'get_headers'
	/etc/nginx/lua/ha-auth.lua:7: in function 'authenticate'
	/etc/nginx/lua/ha-auth.lua:73: in function </etc/nginx/lua/ha-auth.lua:1>, client: 192.168.1.224, server: a0d7b954-nodered.local.hass.io, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.153:1880", referrer: "http://192.168.1.153:1880/"
[23/Jan/2021:19:40:27 +0100] 500 -(192.168.1.224) GET /favicon.ico HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36)
[23/Jan/2021:20:58:12 +0100] 101 192.168.1.224, 172.30.32.1(172.30.32.2) GET /comms HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36)
23 Jan 20:58:12 - [trace] comms.close IYhFhpFNZ79nZn1v0P3Fd04+elmPLo9i3KiT402dqyY=

My conf:

credential_secret: **************
dark_mode: false
http_node:
  username: ''
  password: ''
http_static:
  username: ''
  password: ''
ssl: false
certfile: fullchain.pem
keyfile: privkey.pem
require_ssl: false
system_packages: []
npm_packages: []
init_commands: []
port: 1880
log_level: trace

Thanks

Hi, I’m experiencing the same issue, seems since the latest upgrade of the node-RED addon (to N-R 8.0.0).

Also having the same issue. Works btw when you use the Sidebar option within HA. Just not when going direct via the web url and port.

2021/01/24 03:11:20 [error] 577#577: *309 lua entry thread aborted: runtime error: /usr/share/lua/common/resty/core/request.lua:124: no request found
stack traceback:
coroutine 0:
[C]: in function ‘error’
/usr/share/lua/common/resty/core/request.lua:124: in function ‘get_headers’
/etc/nginx/lua/ha-auth.lua:7: in function ‘authenticate’
/etc/nginx/lua/ha-auth.lua:73: in function </etc/nginx/lua/ha-auth.lua:1>, client: 192.168.68.66, server: a0d7b954-nodered, request: “GET / HTTP/2.0”, host: “my.duckdns.org:1880
[24/Jan/2021:03:11:20 -0800] 500 -(192.168.68.66) GET / HTTP/2.0 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36)

Same here.

Sidebar works, so the same… i did not know if it could be related to mentioned update, but seems to be… Thanks to all

This issue is fixed now, update your add-ons.

Thank you! It is working again.

I confirm, it is fixed. Thank you!

I’ve updated all my add ons and I’m getting this same issue. I’m on 2021.5 on HA. I can access Node Red throught HA UI just fine but http://myHAip:1880/ gives me a 500 Internal Server Error. Anyone have this same issue?