Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
I am currently building a web application that uses the spotify web API and the web playback SDK. Part of this application is a frontend-side playlist (not spotify playlists). For this I react on 'player_state_changed' events to play the next track in my playlist when the current track ends.
However, when I do this, I always get 502 errors, with no further information (
error Object { status: 502, message: "Bad gateway." })
If I manually execute the exact same call a few seconds later, or include a sleep in my code, the call works. If I check the device status directly before the call, I cannot detect any restrictions.
The API seems to be unable to answer calls for a short moment when a track has ended.