-
Notifications
You must be signed in to change notification settings - Fork 8
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
Proper way to avoid Spotify errors #2
Comments
Hey! It looks like the exception is happening at the You should add a try/catch around this, and probably put another I would also recommend that you add some kind of delay (maybe even exponential delay) between each retry to avoid hammering the Spotify API if something goes wrong. Cheers! |
Oh, I see now. Thank you! Does the Thanks for you help. |
If you do |
I implemented your previous suggestion and so far so good! I'll let you know after I've had more time to test it. Thanks for your help. |
Hey since I had to set up my windows again i get this error too. Before it worked just fine, I never had any problems. It looks like this for me but since i have no idea what im doing how can I avoid this error?
|
Every so often when my program calls
buddyList.getFriendActivity(accessToken)
I get the errorand I would like to avoid having this error crash my program. I have tried various workarounds, but I am not a JS expert and was hoping you might be able to help. I thought that following code should work, but it still doesn't work reliably.
where
fulfillWithTimeLimit(timeLimit, task, failureValue)
isDo you have any suggestions on how I can make this work reliably?
The text was updated successfully, but these errors were encountered: