[GH-ISSUE #266] Service not found exception when creating a playlist with $userId #195

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

Originally created by @WillyReyno on GitHub (Aug 1, 2023).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/266

Hello,

I just upgraded to 5.7.0 but when createPlaylist() is provided with a $userId, the request ends up in Service not found exception because the endpoint doesn't seem to be correct.

According to Create Playlist documentation it should be v1/users/{user_id}/playlists and not v1/{user_id}/playlists.

Best regards!

Originally created by @WillyReyno on GitHub (Aug 1, 2023). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/266 Hello, I just upgraded to 5.7.0 but when `createPlaylist()` is provided with a `$userId`, the request ends up in `Service not found` exception because the endpoint doesn't seem to be correct. According to [Create Playlist documentation](https://developer.spotify.com/documentation/web-api/reference/create-playlist) it should be `v1/users/{user_id}/playlists` and not `v1/{user_id}/playlists`. Best regards!
kerem 2026-02-27 19:26:32 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jwilsson commented on GitHub (Aug 1, 2023):

Ah jeez, I guess I didn't test it enough. Sorry about that.

I'll get a patch out ASAP.

<!-- gh-comment-id:1660788289 --> @jwilsson commented on GitHub (Aug 1, 2023): Ah jeez, I guess I didn't test it enough. Sorry about that. I'll get a patch out ASAP.
Author
Owner

@jwilsson commented on GitHub (Aug 1, 2023):

5.7.1 should work as expected. Sorry again for the trouble.

<!-- gh-comment-id:1660802059 --> @jwilsson commented on GitHub (Aug 1, 2023): `5.7.1` should work as expected. Sorry again for the trouble.
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#195
No description provided.