Closed 877dev closed 2 years ago
After a while playing I have figured out how to replicate the issue.
I have two clients set up in node red, my 'LIVE' system and a 'read only' one for the wife. This has been running fine like this for many months, both using the SLL wss webhook (cloud).
If either of those is set to wss, it disconnects and stays disconnected. If both are set to ws (non-ssl) then is connects fine.
But, whenever I redeploy, I get this error, and the nodes show as disconnected for around 5-10secs before connecting:
Hello, this is a big problem, but I was unable to reproduce it locally. However, I have noticed that there are some problems with opening and closing websockets, particularly when deploying a flow.
Could you try to make the settings that give error and then, after having done the deployment, restart the nodered service? please attach me the logs you boot of nodered
let me know
Edited this post as it was my mistake, not an error.
As I am using a Docker container, the Blynk container port is mapped to 8180 to avoid conflicts. I was using port 8080 which was throwing up errors. Now I am using port 8180 it works fine, as does 9443.
https://sensorsiot.github.io/IOTstack/Networking/
However, I was having this issue previously on port 9443 with the cloud server, so I think it is still a valid issue. But I am having trouble reproducing it.
@gablau Feb 2021, the problem has reoccurred over this last week. I restarted node red, here's the logs (I deleted some sensitive Alexa info only): _nodered_logs.log
For now this has fixed it:
My account - same settings:
Family account - changed wss://blynk-cloud.com/websockets to wss://blynk-cloud.com/websocket (removed s)
Possibly linked to this somehow? https://community.blynk.cc/t/solved-blynk-node-red-websocket-error-after-upgrading-server-to-0-41-15/51422
Darn, just changed a few unrelated flows and the error is back, can't seem to fix it this time.....
Are you sure you changed the url for your “ LIVE SYSTEM” connection? Did you restart Node-Red afterwards?
Pete.
Hi Pete,
I did not need to change the LIVE url at first, it was working fine. Restarting seemed to give mixed results, sometimes connecting or not.
Last night I changed both to "wss://blynk-cloud.com/websocket" and restarted, and it seems to be fine - (again). Fingers crossed...
@Peterkn2001 for no apparent reason I am today getting this every so often, nodes are connecting though... Are you having the same?
Actually scratch that, everything's disconnected now! :/
Hi @877dev, i released a new version 1.0.6, could you see if it solves this problem?
I fixed some things about the websocket connection.
Best Regards
Hi @gablau,
I just updated and it seems to be working fine so far, although I have had no issues for a while now. Thanks
Hi @gablau hope you are well,
I had an issue today where node red was showing all Blynk nodes as disconnected, I rebooted node red with no effect, and updated to your latest version 1.0.3.
Node red log:
I thought I had fixed this by going into node properties and changing
wss://blynk-cloud.com/websockets
to non-SSLws://blynk-cloud.com/websockets
, deployed and it all connected fine.If I try and change it back to SSL wss it disconnects all the nodes when I redeploy, now I am experimenting and cannot get it to connect at all!
So I am asking:
1) Any idea what the issue is?
2) If the nodes disconnect again, is there a way to be notified/trigger a flow?
Many thanks 877