Page 1 of 1

Warning: Empty NZB file

Posted: January 12th, 2014, 10:20 pm
by tonyspin
I have searched the forums and saw this issue listed, but none of the resolutions are applicable. I am trying to create a 3rd party application that sends a newznab nzb link to sabnzbd to queue it to download. When I do this the file does not download and I get "Warning: Empty NZB file" in my sabnzbd log.

I can click on the "send to sabnzbd" link in newznab and it queues the file just fine. I can also put the newznab api call into a browser and the NZB will download just fine.

I am sending the link in the format:

Code: Select all

http://<sabnzbd URL>/sabnzbd/api?mode=addurl&apikey=<apikey>&name=https://<newznab URL>/getnzb/df8641ccxxxxxxxx18800805ae.nzb&i=1&r=<newznab apikey>
I do have my newznab server using HTTPS and am wondering if this causing an issue.

Any help would be appreciated. Thanks!

Re: Warning: Empty NZB file

Posted: January 13th, 2014, 5:58 am
by jcfp
Logic dictates you need to encode the newznab url. Failure to do so would make parameters such as "i" and "r" in your example link part of the sabnzbd url and/or cause the newznab url part to arrive garbled at sabnzbd.