Comments (10)
Okay. It already works for me although I had already restarted the server several times and it still did not work for me. I solved it by deviculating the old nora service in the Google Home App associated with the Gmail account. I also had to remove the old nora token that each account had associated with in Node Red and so I no longer get the Smart Nora devices without disconnection. Thank you very much for your help.
from node-red-contrib-smartnora.
I had this happen to me as well (some long time ago). I think it's a bug related to the online dead letter. I've been trying to reproduce and fix but not much luck.
Until then, a restart of node-red should fix the issue...
from node-red-contrib-smartnora.
Btw, do you have connection issues? Anything else from the node-red logs on that day?
from node-red-contrib-smartnora.
Just got this error this morning. NORA was not able to sync since last night (it just retried again and again).
(node.js v10.22.1)
Apr 26 09:50:22 raspberrypi Node-RED[3209]: 26 Apr 09:50:22 - [warn] unhandled error (trying again in 78.5 sec): request to https://api.smart-nora.eu/client/sync?group=home& failed, reason: connect ETIMEDOUT 142.250.185.179:443
Apr 26 09:50:22 raspberrypi Node-RED[3209]: FetchError: request to https://api.smart-nora.eu/client/sync?group=home& failed, reason: connect ETIMEDOUT 142.250.185.179:443
Apr 26 09:50:22 raspberrypi Node-RED[3209]: at ClientRequest.<anonymous> (/home/pi/node-red-contrib-smartnora/node_modules/node-fetch/lib/index.js:1461:11)
Apr 26 09:50:22 raspberrypi Node-RED[3209]: at ClientRequest.emit (events.js:198:13)
Apr 26 09:50:22 raspberrypi Node-RED[3209]: at TLSSocket.socketErrorListener (_http_client.js:401:9)
Apr 26 09:50:22 raspberrypi Node-RED[3209]: at TLSSocket.emit (events.js:198:13)
Apr 26 09:50:22 raspberrypi Node-RED[3209]: at emitErrorNT (internal/streams/destroy.js:91:8)
Apr 26 09:50:22 raspberrypi Node-RED[3209]: at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
Apr 26 09:50:22 raspberrypi Node-RED[3209]: at process._tickCallback (internal/process/next_tick.js:63:19)
After restarting the node-red service, it worked fine.
Not sure what the underlying issue is that prevents the call to get to the server.
I updated node.js to 14.16.1 LTS. Will keep an eye on it if it happens again.
from node-red-contrib-smartnora.
Getting similar error:
26 Apr 16:30:09 - [warn] unhandled error (trying again in 81 sec): request to https://api.smart-nora.eu/client/sync?group=%3Cdefault%3E& failed, reason: socket hang up
FetchError: request to https://api.smart-nora.eu/client/sync?group=%3Cdefault%3E& failed, reason: socket hang up
at ClientRequest.<anonymous> (/home/pi/.node-red/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketOnEnd (_http_client.js:435:9)
at TLSSocket.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Restarting just the flow does not help, restarting node-red, as you suggested does work and nora service is synchronizing again.
My node.js is v10.24.1 and node-red is latest 1.3.3.
With old nora connection issues could be solved by restarting flows that I had configured in daily schedule flow, restarting node-red is not desirable.
If you need more info please advise.
Thanks for this lovely service and keep up.
from node-red-contrib-smartnora.
@mvujica maybe the problem is in node-fetch
. It seems that at random points, all HTTP requests fail. Even if there is internet connectivity. I checked node-fetch
github repo for similar open issues, but couldn't find anything related yet.
I also tried updating node to v14 to see if that fixes it.
It might also be related to the https agent nora is using. If I still encounter the issue, I'll try removing the agent completely.
from node-red-contrib-smartnora.
Thanks for quick reply!
What do you suggest, update node to v14 or wait for your fix?
Had this problem intermittently since I upgraded to smart-nora for 3 days now.
from node-red-contrib-smartnora.
@mvujica for me this was the 2nd time it happened since January.
If it happens more often for you, I would suggest trying to update to node v14 and see if that improves anything.
from node-red-contrib-smartnora.
@mvujica Found the issue and released v1.0.5: https://github.com/andrei-tatar/node-red-contrib-smartnora/releases/tag/v1.0.5
The problem is that the retry to connect didn't work. It was just showing the same error message over and over again but not really trying to connect. So if for some reason the connection was lost and regained, it wouldn't really connect back.
from node-red-contrib-smartnora.
Great thx.
from node-red-contrib-smartnora.
Related Issues (20)
- Potential Hard Stop error in Noce-Red 3.1 HOT 7
- I have an issue while using NORA HOT 1
- I have an issue while using NORA HOT 3
- I have an issue while using NORA HOT 4
- I have an issue while using NORA HOT 3
- I have an issue while using NORA HOT 3
- Not able to connect smart nore with google home HOT 5
- I have an issue while using NORA HOT 8
- I have an issue while using NORA HOT 7
- I have an issue while using NORA HOT 3
- Can't link my SmartNora account to the devices in nodered HOT 19
- I have an issue while using NORA HOT 3
- I have an issue while using NORA HOT 1
- I have an issue while using NORA HOT 1
- All my SMART Nora devices keep showing up in offline status HOT 4
- I have an issue while using NORA HOT 3
- I have an issue while using NORA HOT 1
- Thermostat "on" mode not working. HOT 7
- Doorbell does not work HOT 5
- I have an issue while using NORA HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-smartnora.