david
Commenti
Attività recente di david
-
OK, we owe Netatmo an apology, but in our defense, this was not easy to find. Without going into too much detail, the problem was that Microsoft seems to have removed some obsolete roles on Azure t...
- Visualizza commento
- 2 voti
-
The error message in the OP shows that the 500 response is coming from account-link.nabucasa.com, not netatmo.com. I would investigate the nabucasa.com server for the problem.
- Visualizza commento
- 0 voti
-
I've just spent several hours debugging this, and I have new data. Fundamentally, the invalid_grant response seems to occur when the token has expired. If I navigate to the app setup page (https://...
- Visualizza commento
- 0 voti
-
I always interpreted the docs to mean that the API will tell you that the token has expired, and then you go and get a new one. The API behaved that way until this week, so we had no reason to thin...
- Visualizza commento
- 0 voti
-
@alexander: That's because until Monday the documentation said to handle token expiration by refreshing the token. The code posted above worked without interruption for half a year until noon CEST ...
- Visualizza commento
- 1 voto
-
@Leslie: dommage, mais non. After removing the auth header from the refresh call, the grant still expired promptly at 3 hours, 20 minutes after the last refresh. Is there any reason not to refresh ...
- Visualizza commento
- 0 voti
-
Removing the authorization header from the renewal method per @alexander didn't change the behavior. We're going to try refreshing the token before it expires going forward.
- Visualizza commento
- 0 voti
-
So, is the fix to pre-emptively refresh the grant after n seconds? The documentation seems clear that you should only refresh expired tokens.
- Visualizza commento
- 0 voti
-
The wrench in that machine is that we're receiving invalid_grant, not access_denied or anything indicating the token itself is the problem. Also, when refreshing the token manually, I have been ask...
- Visualizza commento
- 0 voti
-
So, re-reading the documentation just now, I have a hypothesis about how the Netatmo API changed. When we refresh the token, we apply the expired token in the authorization header. But looking at h...
- Visualizza commento
- 0 voti