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] SABnzbd config test fails with connection error #761

Closed ianweatherburn closed 1 year ago

ianweatherburn commented 1 year ago

SABnzbd on Docker ([ghcr.io/jagandeepbrar/lunasea:beta])) fails with: DioError [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. at the "Test Connect" screen.

The configuration is exactly the same as Lunasea setup on iOS which works correctly. All other configs to Sonarr/Radarr etc work correctly from your Lunasea docker (with all of these components running on a docker default network 172.18.0.0/24)

SABnzbd config in Lunasea is setup as: http://192.168.0.xxx:8080 with the correct API key (which works on iOS app) Have also tried with the IP of the docker container (172.18.0.14:8080)

SABnzbd security for external access is setup as Full Web Interface (only external access requires login)

Have tried with a Basic Auth header using the SABnzbd credentials, no difference.

JagandeepBrar commented 1 year ago

Is your SABnzbd or LunaSea hosted instance utilizing HTTPS/SSL?

LunaSea Web must use the same protocol as the hosted services, so if SABnzbd is using HTTP/unsecured, then you will need to ensure LunaSea is also being exposed on a HTTP/unsecured host.

This is due to modern browser's mixed content security protection.

ianweatherburn commented 1 year ago

Both Lunasea and SABnzbd are on http and not https Both on the same server running in docker Lunasea: http://192.168.0.x:8383 SABnzbd: http://192.168.0.x:8080

JagandeepBrar commented 1 year ago

Sadly due to the way that Flutter compiles to web, I can't get more details about why the network call is failing.

All I can suggest is to take another look at the host and API key and validate everything looks good, maybe even try restoring from a backup of a device that can for sure connect.

I was able to confirm that it's not a direct issue with LunaSea as I am able to connect both via my local IP and my reverse proxy host using the web GUI via the hosted and self-hosted versions.

JagandeepBrar commented 1 year ago

For now I am going to close the ticket as a support ticket, if you need some additional help reach out via one of the channels mentioned by the bot.

github-actions[bot] commented 1 year ago

Hi @ianweatherburn! We use the issue tracker exclusively for bug reports and issues. However, this issue appears to be a support request. Please use the following channels: