Error sending NZB to nzbGet (Update the request URL to avoid this redirect.)

Sonarr version (exact version): 2.0.0.4326
Mono version (if Sonarr is not running on Windows):Stable 4.2.3.4/832de4b
OS: Docker
((Debug logs)): https://cl.ly/2q1O252H0C41 https://cl.ly/130B3A1t2J2V, https://cl.ly/17221W0y323B
Description of issue: Apparently there is a redirect, which nzbGet or Docker aren’t handling well. Nzbget has this error:
Kind Time Text INFO Fri Sep 16 2016 18:03:35 Collection Duck.Quacks.Dont.Echo.UK.S05E03.720p.HDTV.x264-C4TV added to history ERROR Fri Sep 16 2016 18:03:34 Error parsing nzb-file Duck.Quacks.Dont.Echo.UK.S05E03.720p.HDTV.x264-C4TV.nzb ERROR Fri Sep 16 2016 18:03:34 Error parsing nzb-file: Premature end of data in tag html line 1 ERROR Fri Sep 16 2016 18:03:34 Error parsing nzb-file: Opening and ending tag mismatch: body line 3 and html ERROR Fri Sep 16 2016 18:03:34 Error parsing nzb-file: Opening and ending tag mismatch: hr line 5 and body

Your indexer (althub in this case) is redirection the request for https://althub.co.za/getnzb/aff7fe36327868800f708589b5b522c4.nzb&i=15363&r=85257c5a849a61903a6a4373980163c9 to something else. Either the indexer URL needs to be updated (in your Sonarr setup) or there is something wrong with the URL they are providing in the RSS feed and it requires a redirect to actually download the NZB in which case Althub will need to fix it.

Right, but that URL is correct, and wget’ing it renders a perfectly usable nzb. No redirection is happening as far as I can tell. Downloading it with nzbget or Chrome, and then sending it to nzbget works fine.

I misread the initial log message, that’s the URL it’s being redirected to the API returns: http://althub.co.za/getnzb/aff7fe36327868800f708589b5b522c4.nzb&i=15363&r=85257c5a849a61903a6a4373980163c9 which is them redirected to https://althub.co.za/getnzb/aff7fe36327868800f708589b5b522c4.nzb&i=15363&r=85257c5a849a61903a6a4373980163c9 it’s a simple HTTP to HTTPS redirect, but that’s the issue, AltHub shouldn’t be sending an HTTP URL at all, especially when the site is requested over HTTPS.

This is something AltHub will need to fix.

@markus101 Why is his system thinking it’s running in non-production mode? That Error only gets generated in non-production mode, in production mode it auto redirects internally. Maybe his docker puts sonarr in /run/...

@flacrock The url in the error IS the redirected url, not the original. Enable Trace level logging. Also check where sonarr is located in the docker, if it’s under /run/ then that’s the cause.

Well, it just uses the Sonarr apt thingy. I pretty much just use this docker image with a few tweaks so that it runs alongside my other docker containers in docker-compose.
 stevedore > ~ > dev > doc > media $ cat common.yml version: '2' services: app: env_file: env hostname: stevedore logging: {driver: json-file} restart: always  stevedore > ~ > dev > doc > media $ cat sonarr.yml version: '2' services: sonarr: extends: file: common.yml service: app domainname: stevedore container_name: sonarr image: linuxserver/sonarr labels: {org.stevedore.service: sonarr} ports: ['0.0.0.0:8989:8989'] restart: always volumes: ['/nas/config/sonarr:/config', '/nas/shows:/tv', '/nas/upload:/downloads']  stevedore > ~ > dev > doc > media $ cat env PGID=1001 PUID=1001 TZ=Europe/Oslo VERSION=latest

Oh, and Couchpotato still works fine…

More info here: https://www.althub.co.za/forums/viewtopic.php?f=28&t=262&sid=ebd9451cbfc3663a6b02eb463cc0b455

I responded to the thread on althub.

On Soanrr’s System Information page, what is listed in the About section?

Do you mean Status?

Version
2.0.0.4326
Mono Version
4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
AppData directory
/config
Startup directory
/opt/NzbDrone

Confirmed fixed on the develop branch. version 4340 and higher.

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