GithubHelp home page GithubHelp logo

Comments (10)

nager07 avatar nager07 commented on June 20, 2024 1

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.

andrei-tatar avatar andrei-tatar commented on June 20, 2024

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.

andrei-tatar avatar andrei-tatar commented on June 20, 2024

Btw, do you have connection issues? Anything else from the node-red logs on that day?

from node-red-contrib-smartnora.

andrei-tatar avatar andrei-tatar commented on June 20, 2024

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.

mvujica avatar mvujica commented on June 20, 2024

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.

andrei-tatar avatar andrei-tatar commented on June 20, 2024

@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.

mvujica avatar mvujica commented on June 20, 2024

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.

andrei-tatar avatar andrei-tatar commented on June 20, 2024

@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.

andrei-tatar avatar andrei-tatar commented on June 20, 2024

@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.

mvujica avatar mvujica commented on June 20, 2024

Great thx.

from node-red-contrib-smartnora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.