transmission-exporter
transmission-exporter copied to clipboard
failed to get torrents: json: cannot unmarshal bool into Go struct field TrackerStat.arguments.torrents.trackerStats.lastScrapeTimedOut of type int
The error above is because of a change between transmission rpc version 15 (e.g. transmission 2.96) and rpc version 16 (e.g. transmission 3.00).
In transmission rpc version 15, LastScrapeTimedOut returns 1 or 0 In transmission rpc version 16, LastScrapeTimedOut returns true or false
See https://github.com/transmission/transmission/commit/10cdd7f790eed859ad333a6a7635a2d6a2d53447#diff-4ca297cf040b4daea3237cb7ea634b42L492
It would be ideal if it can accept both true/1 or false/0 to retain compatibility with both 2.96 and 3.00. I will attempt a PR if you want, but I might not get to it for a few weeks.
Easy workaround: Use updated images which contain the fix, i.e. micaelserrano/transmission-exporter:latest
cool