Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: refreshToken - Error: | 400 #43

Closed
lohrm-stabl opened this issue Jun 24, 2024 · 3 comments
Closed

Bug: refreshToken - Error: | 400 #43

lohrm-stabl opened this issue Jun 24, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@lohrm-stabl
Copy link

lohrm-stabl commented Jun 24, 2024

Sometimes the light just does not work. Othertimes it works fine. Sometimes it's after a running for 24 hours, sometimes it happens after 5 minutes. Right now, restarting does not even help.
I run the latest main with a custom Azure APP.

The log then shows:

HTTPS] Method: POST, Response code: 400
refreshToken() - Error:
refreshToken()
[HTTPS] Method: POST, Response code: 400
refreshToken() - Error:
refreshToken()
[HTTPS] Method: POST, Response code: 400
refreshToken() - Error:

And the light lights up in red (turning, with 1/4 LEDs on).

@toblum
Copy link
Owner

toblum commented Jun 29, 2024

Hi @lohrm-stabl,

I couldn't reproduce this issue so far. Something seems to go wrong when refreshing the token. Unfortunately you can't see details in the logs. So I published a new version v0.18.5 that has extended logging in this case. You may try with this version and then we may see why this fails.

Greetings

@toblum toblum self-assigned this Jun 29, 2024
@toblum toblum added the bug Something isn't working label Jun 29, 2024
@toblum
Copy link
Owner

toblum commented Jul 25, 2024

I had this running for quite some time with extended logging but did not notice any issues. So I close this issue for now.

@toblum toblum closed this as completed Jul 25, 2024
@marcelstoer
Copy link

marcelstoer commented Dec 11, 2024

Just came across the HTTP 400 as well. The extended logging revealed that it was because I hadn't used the device for >90d. Hence, the refresh token had expired in the meantime.
I had to wipe the flash and set up the app from scratch. Forcefully putting into AP mode and running through the login procedure might have helped as well; didn't try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants