nileio / node-red-contrib-graphql-server

GraphQL and Subscription server implementation for Node-RED
MIT License
10 stars 1 forks source link

cannot read property address of null on Node-RED restart #1

Closed nileio closed 3 years ago

nileio commented 3 years ago

I am unable to re-produce this issue so investigation continues. I currently use RED.server.address().address but this should always return a value. Investigation continues, please add a comment for the issue if you have any thoughts to resolve this issue. Workaround solution : currently a Re-deploy of the flow is required in order to run GraphQL in node after Node-RED restart.

nileio commented 3 years ago

I verified this is not only applicable to the Docker image.. on a new Ubuntu installation with fresh node-red install, the same issue occurs.

nileio commented 3 years ago

RED.server.address() is null because RED.server.listening = false . I am not sure why would server.listening return false. Anyway I do not need to use it and instead used RED.settings.uiHost and RED.settings.uiPort which should always return the same thing.