500 internal server error

500 internal server error


i got a token by making a post request using the client credentials and

{ 'grant_type':'client_credentials',
'scope': 'user-read-recently-played'} in header. as data for that post request.


But when i use this token to get recently played tracks-, it gives me a 500 error:

{'error': {'status': 500, 'message': 'Server error.'}}


Any idea what is happenning here?

1 Reply


Hey @deepaksai__, thanks for your post here!

Since the client credentials flow does not include authorization, only endpoints that do not access user information can be accessed. You can use another authentication flow for getting recently played tracks from a user. Let me know if you have any questions!

Have a great day,


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

Suggested posts

Env: prod