Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to get torrents: json: cannot unmarshal bool into Go struct field TrackerStat.arguments.torrents.trackerStats.lastScrapeTimedOut of type int #26

Open
shric opened this issue Jul 12, 2020 · 2 comments

Comments

@shric
Copy link

shric commented Jul 12, 2020

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 transmission/transmission@10cdd7f#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.

@varac
Copy link

varac commented Nov 4, 2021

Easy workaround: Use updated images which contain the fix, i.e. micaelserrano/transmission-exporter:latest

@xinmans
Copy link

xinmans commented Mar 26, 2022

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants