Announcements

Help Wizard

Step 1

NEXT STEP

Small change to api error responses

Small change to api error responses

I am currently trying out the console API for an application and so far going well, but I ran into an error message while trying the search endpoint:

 

 

{
  "error" : {
    "status" : 400,
    "message" : "Missing parameter type"
  }
}

 

 

Now I finally found out what the problem was after way to many hours wasted. The search api has a parameter called 'type', that I forgot. The reason it took that long was that i thought the message told me I was missing A type, but without telling me which one. I would suggest that the message should be like

 

 

{
  "error" : {
    "status" : 400,
    "message" : "Missing parameter 'type'"
  }
}

 

 

to avoid confusion like I experienced for a couple of days. Just a thought.

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random