spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

GET request to the /player endpoint has unexpected return codes #1588

Open Guptacos opened 4 years ago

Guptacos commented 4 years ago

Issue found on May 28th, 2020

The documentation indicates that this call should return either a 200 or a 404 (unclear which is correct?), however it returns a 204.

Only relevant issue I could find was this, which was never followed up on.

Endpoint(s):

Scope(s):

Steps to reproduce:

Does not work in the API console, since it doesn't display error codes

  1. Make sure there are no active devices
  2. Use curl with verbose flag:
    curl -X "GET" "https://api.spotify.com/v1/me/player" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer __TOKEN__"
  3. Note the return code of 204

Expected behaviour:

UNKNOWN

Actual behaviour:

Return code 204 (consistently)