JSON.parse error, lastScrapeResult have binary data.

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Post Reply
Anton9121
Posts: 8
Joined: Mon Jul 14, 2014 4:47 am

JSON.parse error, lastScrapeResult have binary data.

Post by Anton9121 »

When request trackerStats, item lastScrapeResult may have binary data, and browser can't parse JSON.
I replace this item with regexp, but I think it need serialize.

Code: Select all

data.replace(/"lastScrapeResult":"[^"]*","/gm, '"lastScrapeResult":"","');
greg55
Posts: 1
Joined: Mon Nov 03, 2014 11:53 am

Re: JSON.parse error, lastScrapeResult have binary data.

Post by greg55 »

You could try using https://json-csv.com to parse the data. That will at least show you exactly what data is in the response.
Post Reply