[Web API] Bug: 403 Response with empty body instead of Error Object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Observed behavior:
As expected, a GET request to the endpoint at https://api.spotify.com/v1/me/top/artists
receives an HTTP 403 response when the Token in use does not have the necessary Scope (i.e., lacking 'user-top-read' scope)
However, the body of the HTTP response does not contain the expected JSON data -- an Error Object. In fact, the body of the response is empty.
As per the documentation at
https://developer.spotify.com/documentation/web-api/reference/personalization/get-users-top-artists-...
I expected a JSON-formatted Error Object in the body of the HTTP response.
See Pastebin link for: CLI output from `curl -v` command demonstrating issue.
Note line 22: "< Content-Length: 0"
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page