mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 16:05:51 +03:00
[GH-ISSUE #150] $api->updatePlaylistImage is failing with unknown error #95
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anderthalb on GitHub (Feb 7, 2019).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/150
Hi there,
I'm using your api for quite a while now and I love it! But today I run into a problem I can't explain. Maybe I miss something and I hope you are able to help me.
I created a private user playlist (which works fine!) and now I want to set the image for the playlist. When I run the following code, I see an error:
An unknown error occurred. in .../vendor/jwilsson/spotify-web-api-php/src/Request.php:45
This is the code:
$playlist->id is correkt and when I enter $playlist->external_urls->spotify I can see the correkt playlist.
Private Playlists are generated for a special "backend-"user I use. This user has granted the scopes ['playlist-modify-public', 'playlist-modify-private']. Everything works fine, but the image update.
The image itself is around 95kb and the base64-code arount 130kb ... should be ok too.
Any ideas?
@jwilsson commented on GitHub (Feb 7, 2019):
Hi!
Does the user also have the
ugc-image-uploadscope? And does it work when using something like cURL for example?Because the code looks correct to me!
@anderthalb commented on GitHub (Feb 11, 2019):
Yes, it was the missing "ugc-image-upload" scope. I knew that once, but forgot it ... many thanks for the hint!
Cheers, Christian