Announcements

Help Wizard

Step 1

NEXT STEP

Getting 500 on saving a track after adding scopes to the call.

Solved!

Getting 500 on saving a track after adding scopes to the call.

Web API:

 
500
 
218 ms
PUT /v1/me/tracks HTTP/1.1
Authorization: Bearer XXX
Content-Type: application/json
User-Agent: PostmanRuntime/7.32.2
Accept: */*
Cache-Control: no-cache
Postman-Token: 4428bb1a-1fda-4c32-a75d-fff3d8dee704
Host: api.spotify.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 59
 
{
"ids": [
"5ZzxgIheA8ZwywtZi61A5j"
]
}
 
HTTP/1.1 500 Internal Server Error
content-type: application/json; charset=utf-8
cache-control: private, max-age=0
x-robots-tag: noindex, nofollow
access-control-allow-origin: *
access-control-allow-headers: Accept, App-Platform, Authorization, Content-Type, Origin, Retry-After, Spotify-App-Version, X-Cloud-Trace-Context, client-token, content-access-token
access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE, PATCH
access-control-allow-credentials: true
access-control-max-age: 604800
content-encoding: gzip
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
date: Sat, 03 Jun 2023 10:53:20 GMT
server: envoy
Via: HTTP/2 edgeproxy, 1.1 google
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Transfer-Encoding: chunked
 
{
"error" : {
"status" : 500,
"message" : "Server error."
}
}

My Auth looks like this:

 
200
 
200 ms
POST /api/token HTTP/1.1
Authorization: Basic XXX
User-Agent: PostmanRuntime/7.32.2
Accept: */*
Cache-Control: no-cache
Postman-Token: 1af93c0a-7402-40c5-9712-0f2dd7fb45e8
Host: accounts.spotify.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 55
Cookie: __Host-device_id=XXX; sp_tr=false
 
grant_type=client_credentials&scope=user-library-modify
 
HTTP/1.1 200 OK
date: Sat, 03 Jun 2023 10:37:17 GMT
content-type: application/json
sp-trace-id: 5d1d496b5e55fc10
x-envoy-upstream-service-time: 8
server: envoy
 
Reply

Accepted Solutions
Marked as solution

For the 1000st time on this board: you can't use scopes with Client Credentials, because Authorization is required, as you can read under Pre-requisites on this page: https://developer.spotify.com/documentation/web-api/concepts/scopes

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

2 Replies
Marked as solution

For the 1000st time on this board: you can't use scopes with Client Credentials, because Authorization is required, as you can read under Pre-requisites on this page: https://developer.spotify.com/documentation/web-api/concepts/scopes

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

I apologize. That is on me.

Thanks for the reply.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random