Jump to content

[Bug] improperly formatted JSON response


bearonthejob

Recommended Posts

I just noticed this with the latest uTorrent version, but it may have been an issue for a while, as I haven't used the web API recently. When performing a URL add (http://[iP]:[PORT]/gui/?action=add-url&s=[TORRENT URL]), the JSON response has errors in the formatting. There are extra double quotes that are causing syntax errors.

For example, when I perform an add, this is the exact response I get:

{"encbody":"{"build":28830}","GUID":"9wW6h3iKWmVkzd8jDDb7","x-bt-seq":"0"}

You'll notice that before and after the "build" sub-pair, there are extra quotes. This is causing a syntax error for me in google chrome. The torrent URL gets added successfully, but the script I'm running breaks when trying to parse the JSON response.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...