502 Bad Gateway error when creating flows (new install) #470
rebmemer posted onGitHub
Problem/Motivation
On a fresh install of Hassio and a fresh install of Node Red 6.1.0, I'm able to access Node Red and create new flows. It seems that (so far) a specific flow is causing some sort of instability issue when executed which in turn causes Node Red to fail, thus producing a '502 Bad Gateway' (nginx) error.
After this flow has been created and the failure happens, I have to restart the Node Red add-on. It starts up normally, where the log ends with;
26 Feb 21:11:13 - [info] [server:Home Assistant] WebSocket Connecting http://localhost:8123 26 Feb 21:11:14 - [info] [server:Home Assistant] WebSocket Connected to http://localhost:8123
After this I try to access the NR Web UI but it hangs for around 30 seconds before spewing out tons of java heap memory errors. Node Rode is non functional from here on out, the only way to recover it is to delete the flows.json and restart.
(Why the issue was filed) I believe this is unexpected behaviour based on the errors in the add-ons logs (below)
Expected behavior
Flow should have executed without issues. For this scenario, it's just a few HA event triggered actions which update a simple string payload, send it on to a Telegram node which then sends a message to a pre-configured telegram account.
Steps to reproduce
Install the following pallettes; Home Assistant Telegram Chat Bot
Will add the flow to import after submitted, currently trying to recover the NR instance. The flow will require your own configuration to be added for the Telegram BOT Api, chat ID and HA long lived token.
Errors
(Taken from add-on logs for Node Red)