Forums » Bugs & Problems Search

api change? now getting "track - Missing Parameter" New Reply

Author Post
Posts: 22
Registered: Oct 01, 2008

hi guys,

haven't touched my code in a few months, and now i'm receiving this error:

"track - Missing Parameter: track or url is required with a POST content-type of "application/x-www-form-urlencoded" or "multipart/form-data"";

here's the code i'm using to post (which has been working well for some time)

Posts: 914
Registered: Sep 08, 2008

A few months ago we did upgrade our trackUpload support to allow for two types of uploads:

  • An HTTP POST request with Content-Type “multipart/form-data” where all parameters are in the post body and the track is in the “track” section of the post “files”

  • An HTTP POST request with Content-Type “application/octet-stream”, with the local file as the body of the request, and the parameters in the URL

You can see some examples here:

http://developer.echonest.com/docs/v4/track.html#upload

Paul

Posts: 22
Registered: Oct 01, 2008

great, that was it. was using multipart and putting params in the url. changed content type to application/octet-stream and it works. thanks!

Reply to this Thread

You must log in to post a reply.