Skip to content
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

Web API randomly returns 404 for most endpoints #1160

Open
niekert opened this issue Feb 12, 2019 · 7 comments
Open

Web API randomly returns 404 for most endpoints #1160

niekert opened this issue Feb 12, 2019 · 7 comments

Comments

@niekert
Copy link

@niekert niekert commented Feb 12, 2019

Issue found on February 19th 2015.

Endpoint(s):

  • GET /v1/me/playlists
  • GET /tracks?ids
  • `GET /track/{id}
  • `GET /playlists/{id}

Scope(s):

  • All.

What happens

Occasionally, certain endpoints suddenly return a 404 Not Found instead of 200 OK. When refreshing the page, or retrying the exact same request, the status is 200 OK again. The 404's seem to happen on all endpoints and occur completely random (though often)

Steps to reproduce

It's a very hard issue to reproduce because it only seems to occur on the (heroku hosted) instance of my app. On localhost these issues are non existent. Could it be that my app is being rate limited? Though I would expect a 429 Too Many Requests status, and not randomly have certain endpoints fail. I double checked all requests I do to the spotify API and there's no inconsistencies there.

Is anyone running into this same issue?

@niekert niekert changed the title Web API randomly returns 404 for some endpoints Web API randomly returns 404 for most endpoints Feb 12, 2019
@steinitzu

This comment has been minimized.

Copy link

@steinitzu steinitzu commented Feb 12, 2019

Currently experiencing the same issue on GET /artists?ids=xxx,yyy and GET /playlists/{id}/tracks and GET /playlists/{id}
I use different app IDs for development and production. Dev version is affected while production version seems fine.

@AHouy

This comment has been minimized.

Copy link

@AHouy AHouy commented Feb 13, 2019

I am also currently experiencing the same issue but with GET /playlists/{id} and GET /albums/{id}.

I have tried it on my localhost and on a hosted application and it seems like there's a random chance of getting a 404 error for both environments. I also tested going to the Spotify playlist through the Spotify playlist link and there's also a chance of getting a 404 error, even though the playlist exists. If you reload over and over sometimes you'll get a 404 and sometimes you get the expected result.

@niekert

This comment has been minimized.

Copy link
Author

@niekert niekert commented Feb 13, 2019

FYI I've followed @steinitzu's advice to use a different applicationId for development and production. The 404 issue for me only occurred on my production app, but not on localhost. Changing the applicationId for the app on production made the 404's disappear 🤷‍♂️

@roncli

This comment has been minimized.

Copy link

@roncli roncli commented May 13, 2019

For me, it seems like there's something happening where if Spotify is left open but idle for a while, the connection between it and the Spotify API servers is de-registered. From then on, anything I do 404's, but if I manually do something in the Spotify app such as play a playlist, the connection is re-registered again.

This is a highly inconvenient thing for me having to manually bump Spotify whenever I want to programmatically do something.

@BenC0

This comment has been minimized.

Copy link

@BenC0 BenC0 commented Jun 24, 2019

This is happening for me as well, seemingly only with the https://api.spotify.com/v1/me/player/currently-playing API

@BenC0

This comment has been minimized.

Copy link

@BenC0 BenC0 commented Jun 24, 2019

Seemingly related to how often I'm pinging the server, I've increased this to 3500ms and found it to be more stable now. Scratch that, it's random.

@shemin0808nizar

This comment has been minimized.

Copy link

@shemin0808nizar shemin0808nizar commented Nov 15, 2019

Get Request : https://api.spotify.com/v1/me/playlists

Iam getting response.isSuccessful as failure , first time .means 404 not found api error . This api geting works only after refreshing my app again .

so i need to tackle this issue while integrating spotify in android for listing my current users playlists api
Anyone knows the the process to fix this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.