karbassi / netatmo

A node.js module to hook into the netatmo API.
MIT License
58 stars 46 forks source link

API suddenly stopped working after restart #82

Closed runbert closed 3 months ago

runbert commented 3 months ago

Hello,

I've encountered an issue where the Netatmo API suddenly stopped working after a restart of my system. Before the restart, everything was functioning as expected, but now i’m unable to retrieve any data or establish a connection to the API. It gives no errors in the console either.

Steps to Reproduce:

Restart the system that interacts with the Netatmo API. Attempt to make a request to the Netatmo API. Observe the failure to connect or retrieve data.

Actual Behavior:

After the restart, the API does not respond, and all requests fail. I have confirmed that the API keys and other configurations are correct, and no changes were made to the system besides the restart. It seems like netatmo have made some changes on their developer portal where you create refresh tokens?

Additional Information:

I have tried restarting the system multiple times with the same result. MyAPI calls include proper authentication and were functioning prior to the restart. No error messages are returned. api.getStationsData(function(err, devices) does not return anything.

Is anyone else experiencing this problem?

Please let me know if there is a known issue or if additional information is needed to diagnose the issue.

Thank you,

runbert commented 3 months ago

I deleted my old web app in their portal and created a new one with new keys and now it works again. Uh, problem solved I guess.

(It seems like we have to create a new refresh token each time an application restarts. Wow...)