Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Ordering /videos/list and /channels/list by title:asc suddenly returns an error


Hello,

Our application has been making API calls to /videos/list and /channels/list and setting the "order_by" paramter to "title:asc" in order to return the list sorted alphabetically by title. This part of our application hasn't changed in years, but suddenly we are getting an error response like this:

Array
(
[status] => error
[message] => order_by: Unknown field: `title%3Aasc`
[code] => ParameterInvalid
[title] => Invalid Parameter
)

If we remove the "order_by" parameter, the calls succeed without error. The API documents (http://apidocs.jwplayer.com/methods/videos/list.html) indicate that this is still the proper way to order by title. Has anyone experienced this issue? It seems like it could be a bug in the API.

4 Community Answers

Todd

JW Player Support Agent  
1 rated :

A change was made to the way our API does URL encoding. Please see http://status.jwplayer.com/incidents/mbr5qy1gsdz8 for more details.

Please make sure your text strings are URL-encdoded UTF-8 strings as documented at http://apidocs.jwplayer.com/authentication.html

jloop

User  
0 rated :

Hi Todd,

Thanks for your response. It turns out that we were double-encoding our API requests. We made a quick change to our app and it's working again. Thanks!

jloop

User  
0 rated :

Hi Todd,

Thanks for your response. It turns out that we were double-encoding our API requests. We made a quick change to our app and it's working again. Thanks!

Todd

JW Player Support Agent  
0 rated :

Awesome, glad to hear it’s working again!

This question has received the maximum number of answers.