jwilsson / spotify-web-api-php

A PHP wrapper for Spotify's Web API.
MIT License
868 stars 156 forks source link

Error: Forbidden Your client does not have permission to get URL /v1/me/player/recently-played/ from this server. #261

Closed StefSchalks closed 1 year ago

StefSchalks commented 1 year ago

Hi, I'm getting the following error while making requests using this package: Your client does not have permission to get URL /v1/me/player/recently-played/ from this server.

My tokens are refreshing and the access tokens are valid. Does anyone know what could be the problem?

Kind Regards, Stef

jwilsson commented 1 year ago

Hey! I've seen this issue before and that time it solved itself after a few days. I think it's related to the IP you're connecting from being blocked by Google (Spotify uses GCP), have you tried from a different network/server?

Xemaro commented 1 year ago

Same problem here, since two weeks approximately. I checked with two different computers and my smartphone, on many days and with different networks (Wi-Fi, 4g, even with and without a VPN), I even tried to rotate my client secret, nothing seems to change. I can bring a new information : it seems to be random, in some cases the request works and gives back the answer (for example, for the /me/tracks request, I sometimes receive the forbidden error when the offset endpoint is at 50, sometimes 250, etc. (the highest I reached was 600).

StefSchalks commented 1 year ago

@jwilsson I think this is true indeed, used a different server and now it works fine again with exactly the same code. @Xemaro, I would suggest you'd try to use a different server (localhost for example) just to test if this is the same problem as I had.