Infinite Auth/API Loop
See original GitHub issueDescription
The spotify api was offline which resulted in an aggressive re-authentication loop that opened a browser tab about every second. (The end of the url: response_type%3Dcode%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A80%26state%3D55f18fa9%26scope%3Duser-read-playback-state%2520user-modify-playback-state%2520user-read-currently-playing%26show_dialog%3DFalse
)
I had to kill explorer.exe to stop this.
After restarting explorer it only opened the tab once.
How To Reproduce
Probably going offline won’t reproduce, but perhaps an unknown api error would?
Temporary fix
Update code to have a delay of at least a few seconds after api auth fails
Version
- Windows version 1909 (18363.1556)
- AudioBand Version 0.9.4
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Laravel REST API - infinite loop
My first thought was that the auth:api middleware fails to authenticate the user, and as a result redirects the user to /home, where...
Read more >Infinite Loop with Auth · Issue #581 · supabase/auth-helpers
Now you are in an infinite loop. useUser tells you there is a user so you direct to /dashboard but authentication on the...
Read more >Infinite loop — The problem with OAuth, Cookie ...
Recently I had a problem with Cookie Authentication and this put the application into an infinite loop during the OAuth redirects flow.
Read more >Infinite redirect loop during Oauth process - Twitter Developers
Hello, We're seeing cases where users are in an infinite redirect loop in the Twitter Oauth process. The user is first directed to...
Read more >Curl requests end up in infinite loop
Curl requests end up in infinite loop. I've inherited a (L5.5) project which when you hit one route makes a Curl request on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well that was fast, issue should be resolved in future updates
For the interested: The issue was that I never really checked if Spotify was online and functioning properly. I just have to add a fail check to see if something goes wrong on Spotify’s end, that AudioBand still handles it in a friendly way.
Though I also recommend updating (just noticed your AudioBand version is 0.9.4)