Nodered API errors w/ HASS.IO
See original GitHub issueHass.io running 0.84.6, and node-red 1.2.3 on a pi B.
Node-red appears to connect just fine with the “events:state” node, and reflects the time they last changed. It also seems to have no issue with the “current state” node. However, the “call service” nodes do not work.
In the node-red GUI, the error is
"API Error at: (date/time)"
In the node-red module log, the error is:
7 Jan 13:07:42 - [warn] [api-call-service:Turn On Light] Error calling service, home assistant api error
7 Jan 13:07:42 - [error] [api-call-service:Turn On Light] Error calling service, home assistant api error
And in the system monitor, the following error:
19-01-07 21:07:39 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API error: Received message 8:0 is not WSMsgType.TEXT
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Node-RED API Error with call service node
I have a sequence with a couple call service nodes that are generating an API errors when it runs, however, if I do...
Read more >Handling errors - Node-RED
Node-RED provides two ways for a node to report an error. It can either just write a message to the log or it...
Read more >node-red-contrib-home-assistant 0.3.2
If you are running Node Red inside Hass.io addon/container you can use Hass.io API Proxy address http://hassio/homeassistant as Home Assistant server ...
Read more >Node-RED
Node-RED is a programming tool for wiring together hardware devices, APIs and ... An online flow library allows you to share your best...
Read more >Running under Docker - Node-RED
This guide assumes you have some basic familiarity with Docker and the ... be run under Docker and has support for multiple architectures...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I found the issue. On publish, the connection to hassio is made. This takes about five seconds. However, the Inject node fires before this! Setting the Inject node to wat five seconds and then fire solves my problem
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.