justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 379 forks source link

Malformed response when requesting from /users/:user/follows/channels/:target with delete verb? #650

Open Netflyerr opened 7 years ago

Netflyerr commented 7 years ago

Calling endpoint (/users/:user/follows/channels/:target) using JSONP to unfollow (using delete verb) a channel/user produces the Error: callback was not called (using jQuery). I presume that the API response is not appropriate for JSONP. (not sending the function call) or perhaps the function parameter (API data) is not proper JSON format because when debugging the code I can see the following textStatus = "parsererror" in the execution context of the following method: .fail(function(jqXHR, textStatus, errorThrown ). When using plane JSON the API response correctly and no erros occur. Using API version 3 in both situations.