Bad gateway and stability? #624
Unanswered
FrankBJensen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.
First of all, thanx for the work with this API.
I have been running on the old API 1 for years, and now I want to upgrade to the new REST API2. And it seems, that I have it all up running, but I have some random errors. There is no interval. Sometimes it runs for hours, sometimes I get the error within a few minutes. The code that fails, is this
Errors are: Bad gateway, bad request, multible errors
Even though I can see, its an APIexception, it is not catched. The program crashes.
I poll the GetCurrentPlayback once a second, to have the progress. I do a load of checks before I do this, for valid API, valid device, valid token and it all checks out. The spotify app is playing continously, and continues to play, after my app has crashed. So there should be a valid currentPlayback.
try { pcontext = spotify.Player.GetCurrentPlayback().Result; } catch (APIException e) { Console.WriteLine(e.Message); Console.WriteLine(e.Response?.StatusCode); }
Hope for some help, it seems that I am stock on this one...
Beta Was this translation helpful? Give feedback.
All reactions