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.

Spotify api error 404: no active device found. How to fix? #1325

Description

@marcz2007

Issue found on August 1st 2019.

Endpoint(s):

PUT https://api.spotify.com/v1/me/player/play

Scope(s):

  • None (application is not using authentication)

Steps to reproduce:

  1. Create online web app
  2. Don't have been playing anything on Spotify app on the device for a while
  3. Spotify api PUT request from app
  4. Error: no active device
  5. Play something and pause it on Spotify
  6. Spotify api PUT request from app
  7. Successful playing of song

Expected behaviour:

For the device to always be Active.

Actual behaviour:

Inconsistent 404 error.

Body of post:

I have been using the Spotify api and have been receiving this '404 no Active device' error quite a bit. If I play a song on Spotify and pause it after receiving the error, the error goes away and I am able to send the PUT request to PLAY a song on Spotify from my app.

However if the device has been left without playing a track on Spotify then I receive the same error.

How long after using Spotify to play a track does it take until Spotify api deems the Spotify account/device as inactive? Is there a way to set devices as always being active so I don't have this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions