Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.
This repository was archived by the owner on Jul 4, 2020. It is now read-only.

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

@Guptacos

Description

@Guptacos

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):

  • GET /v1/me/player/

Scope(s):

  • user-read-playback-state

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions