toblum / ESPTeamsPresence

Microsoft Teams presence light for ESP32
https://toblum.github.io/ESPTeamsPresence/
Mozilla Public License 2.0
127 stars 37 forks source link

Bug: refreshToken - Error: | 400 #43

Closed lohrm-stabl closed 2 months ago

lohrm-stabl commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

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