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

/users/{user_id}/playlists isn't returning "No such user" response #1077

Open
adamint opened this issue Nov 3, 2018 · 3 comments
Open

/users/{user_id}/playlists isn't returning "No such user" response #1077

adamint opened this issue Nov 3, 2018 · 3 comments
Labels

Comments

@adamint
Copy link

adamint commented Nov 3, 2018

Issue found on November 3, 2018.

Endpoint(s):

  • GET /users/{user_id}/playlists

Scope(s):

  • None (application is not using authentication)

Steps to reproduce:

  1. Open the API Console
  2. Call the get-playlists endpoint with a non-existant user-id (that is still valid) like asjdfjljaskldfkljajklsdfasdf. asjdfjljaskldfkljajklsdfasdfjfdjkjkafjkasjkfjksd and other invalid user-ids throw an error here, correctly.

Expected behaviour:

An error message like:

{
  "error": {
    "status": 404,
    "message": "Non-existant user"
  }
}

Actual behaviour:

Valid paging object that contains an empty list of tracks.

@adamint
Copy link
Author

adamint commented Nov 3, 2018

As I came across this, it seemed like a bug. Is there any rationale behind having this behavior?

@adamint
Copy link
Author

adamint commented Dec 27, 2018

any update?

@bih
Copy link
Member

bih commented Dec 28, 2018

Hello @adamint,

Thanks for filing this! I can confirm I can reproduce this issue and it is indeed a bug. I'll file it with the teams after the holidays and we'll get it fixed. Cheers!

@bih bih changed the title /users/{user_id}/playlists returns valid PagingObject for invalid user /users/{user_id}/playlists isn't returning "No such user" response Dec 28, 2018
@bih bih added the bug label Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants