-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Summary
Hi! And thanks for this nice application!
Not sure if this should even be considered a bug - it's an edge case for sure, but I report it in case you want to handle it.
So, I tried managarr for the first time recently. I have a simple setup with just one radarr and one sonarr instance.
Radarr works fine, but in the Sonarr tab I get this error:
Failed to parse response! reqwest::Error { kind: Decode, source: Error("missing field statistics
", line: 4162, column: 7) }
It is only on the "Series" view. Other data is fetched without problem, like indexers, downloads, etc.
Same error if I run "managarr sonarr list series"
So I dug into the response from sonarr, and after wrangling the json with jq and grep, I finally found two seasons where the "statistics" field was missing. These belonged to some shows added many years ago, and for some reason both had a "season 0" with basically no data:
{
"seasonNumber": 0,
"monitored": false
}
I solved it by clicking "Refresh & scan" on the two affected shows in Sonarr. This made Sonarr remove these empty seasons, and Managarr now works perfectly 🥳
Reproduction Steps
Might be hard to reproduce on another system.
I'm running mangarr in docker on linux, image tag "latest" as of 2025-03-01, so should correspond to v0.5.1.
Sonarr is also up to date, v4.0.13.2932.
Should be possible to artifically reproduce / add to unit tests by using a json where one of the seasons have no "statistics" object, as shown above.
Managarr log
Relevant parts:
2025-03-01 13:40:27.427 <125727609130496> [DEBUG] src/main.rs:102 - Managarr loaded using config: AppConfig { radarr: Some([ServarrConfig { name: None, host: Some("10.100.0.10"), port: Some(7878), uri: None, weight: None, api_token: Some("********************************"), api_token_file: None, ssl_cert_path: None }]), sonarr: Some([ServarrConfig { name: None, host: Some("10.100.0.10"), port: Some(27333), uri: None, weight: None, api_token: Some("********************************"), api_token_file: None, ssl_cert_path: None }]) }
(...)
2025-03-01 13:41:33.287 <125726967699136> [INFO] src/network/sonarr_network.rs:1820 - Fetching Sonarr library
2025-03-01 13:41:33.337 <125726967699136> [DEBUG] src/network/mod.rs:172 - Creating RequestBuilder for resource: "http://10.100.0.10:27333/api/v3/series"
2025-03-01 13:41:33.337 <125726967699136> [DEBUG] src/network/mod.rs:173 - Sending Get request to http://10.100.0.10:27333/api/v3/series with body None
2025-03-01 13:41:33.664 <125726967699136> [ERROR] src/network/mod.rs:122 - Failed to parse response! reqwest::Error { kind: Decode, source: Error("missing field `statistics`", line: 4162, column: 7) }
2025-03-01 13:41:33.738 <125726967699136> [ERROR] src/main.rs:163 - Encountered an error handling network event: Failed to parse response! reqwest::Error { kind: Decode, source: Error("missing field `statistics`", line: 4162, column: 7) }
Platform
Linux / docker
Terminal Emulator
wezterm
Managarr Version
v0.5.1