[SOLVED] Unable to add Sabnzbd as download client (Unexpected character encountered while parsing value: F. Path '', line 0, position 0

Sonarr version (exact version): 2.0.0.5163

Mono version (if Sonarr is not running on Windows): 4.6.2
OS: Ubuntu 18.04 docker container

Debug logs: https://gist.github.com/5c4f7ec13bf4f777f8c8b2975f38559f

Description of issue:

Attempting to add Sabnzbd as a download client fails with the error in the title (Unexpected character encountered while parsing value: F. Path '', line 0, position 0...

Sonarr running in an Ubuntu 18.04 container on an Arch Docker host. The container is reverse-proxied behind Traefik with LetsEncrypt enabled. Access to the container is via https://sonaar.domain.name and that part works great.

Sabnzbd is also in a container on the same host and accessible via https://sabnzbd.domain.name. I have sabnzbd successfully linked to couchpotato and sickbeard (also on the same host and using the same domain name and api key that I gave to sonarr) and also to nzbgeek.

I have config volume mounted to /config and data volume mounted to /data and both have the correct permissions for the container user (matched to host user/group).

I’ve attempted it with/without the SSL enabled button, and I use port 80 as the port since it’s reverse proxied.

Any ideas? I’m at a loss…

Thanks,
Scott

Sounds like something other than JSON is being returned, trace logs may help show what Sonarr is receiving back.

Oops, sorry. Trace logs for the add download client event here:

https://gist.github.com/da3479ca5618ac48eedbaa93df6326da

Also, I checked status of curl in the container:

sonarr@741a3caecb3f:/$ dpkg --get-selections *curl*                                                                                    
curl                                            install
libcurl3-gnutls:amd64                           install
libcurl4:amd64                                  install

Edit: I just noticed that if I remove the ‘:80’ from the api post url, I can paste that into my browser and get a valid response

https://sabnzbd.domain.com:80/api?mode=version&apikey=048920934f9f346a021d6ff7f52ff2d5&output=json

Ok, I’m an idiot. I’ve been putting in port 80 instead of 443 for SSL traffic. Sigh. Sorry for the noise :blush: PEBKAC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.