JagandeepBrar / lunasea

Self-hosted software controller built using Flutter
https://www.lunasea.app
GNU General Public License v3.0
1.23k stars 61 forks source link

[Bug] Error adding show to Sonarr #753

Closed kaladinsb0 closed 1 year ago

kaladinsb0 commented 1 year ago

Describe the Bug When trying to add a show to Sonarr an error occurs.

To Reproduce Open LunaSea. Goto Sonarr. Add a show.

Expected Behaviour It's never worked so I assume the show just adds.

Screenshots If applicable, add screenshots to help explain your problem.

Versions The latest version of LunaSea (but this feature hasn't worked since I installed it, I think two versions ago). Latest version of Sonarr as well.

Additional context This is the error:

type '_GrowableList' is not a subtype of type 'Map<String, dynamic>'

JagandeepBrar commented 1 year ago

This occurs because you have your host incorrectly set up and the host is currently redirecting. Redirects work with fetching data (GET requests) but will not work for sending data back to the machine (POST/PUT requests).

Take a look at the docs here: https://docs.lunasea.app/modules/sonarr#host

The key thing that was likely forgotten was the URL base, please ensure that it was appended to the host. If you are unable to find the correct URL, you can also load the web GUI on your mobile device and copy and use the host when viewing the main library/homepage of Sonarr.

exalented commented 1 year ago

The check passes without the URL Base set, so this should be changed.