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

Closed
opened 2026-02-27 19:26:30 +03:00 by kerem · 3 comments
Owner

Originally created by @StefSchalks on GitHub (Apr 13, 2023).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/261

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

Originally created by @StefSchalks on GitHub (Apr 13, 2023). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/261 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
kerem 2026-02-27 19:26:30 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jwilsson commented on GitHub (Apr 14, 2023):

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?

<!-- gh-comment-id:1508820697 --> @jwilsson commented on GitHub (Apr 14, 2023): 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?
Author
Owner

@Xemaro commented on GitHub (Apr 17, 2023):

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).

<!-- gh-comment-id:1510891924 --> @Xemaro commented on GitHub (Apr 17, 2023): 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`).
Author
Owner

@StefSchalks commented on GitHub (Apr 18, 2023):

@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.

<!-- gh-comment-id:1513279515 --> @StefSchalks commented on GitHub (Apr 18, 2023): @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#188
No description provided.