question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Infinite Auth/API Loop

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
svr333commented, Mar 12, 2022

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.

0reactions
svr333commented, Mar 12, 2022

Though I also recommend updating (just noticed your AudioBand version is 0.9.4)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found