Failed to find search results, then error in log

Hi, a few days ago I noticed my NZBDrone does not want to do manual searches anymore, when I check the logs I find this,

An error occurred while processing feed. http://api.nzbsa.co.za/api?t=tvsearch&cat=5030,5040&extended=1&apikey=&limit=100&rid=2870&season=10&ep=1: HTTP request failed: [406] [GET] at [http://api.nzbsa.co.za/api?t=tvsearch&cat=5030,5040&extended=1&apikey=“I Removed the key here”&limit=100&rid=2870&season=10&ep=1]

can anyone please assist with this, when I type that url in on my browser from the PC hosting the NZBDrone I get the XML file with the data that I want to see, but NZBDrone claims a fail, I am using the latest version on a Windows 8.1 PC.

Regards,

What are the response headers you get, specifically the content-type header. nzbsa is return a 406 error, which means it doesn’t like the “Accepts” header drone is sending, which is: application/rss+xml, text/rss+xml, text/xml. I’m curious which content type they return, which may explain why they are rejecting the request.

I don’t have an account so I can only test and expect an error about my credentials, but this is a configuration issue on their end, drone is requesting the page with the following accepted content types: application/rss+xml, text/rss+xml, text/xml when this is done nzbsa.co.za rejects it with the following error:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
    <head>
        <title>406 Not Acceptable</title>
    </head>
    <body>
        <h1>Not Acceptable</h1>
        <p>An appropriate representation of the requested resource /api could not be found on this server.</p>
Available variants:

        <ul>
            <li>
                <a href="api.old.php">api.old.php</a> , type application/x-httpd-php
            </li>
            <li>
                <a href="api.php">api.php</a> , type application/x-httpd-php
            </li>
        </ul>
        <hr>
            <address>Apache/2.2.22 (Ubuntu) Server at api.nzbsa.co.za Port 80</address>
        </body>
    </html>

If I change the “Accept” header to accept content type the server returns a valid response, with the “Content-Type” set to text/xml (on of the types are are requesting). The site admin should be able to fix this on their side.

Thanks for the Response I really appreciate it - one of the site admin people actually tested it on his system as he uses NZBDrone as well and he does not receive the error, it is as if there is something different in my NZBDrone config that rejects it.

So my next question would be if I understand your response, would be to change a setting in my NZBDrone config to accept the response from nzbsa.co.za - if I am not understanding you correctly then I appologise…

could you tell me if I have understood properly, then where would I find that setting, if I have miss understood you and you want more info from me to see what the error holds, I can post that, or even email something if necessary.

This change went into the develop and torrents branches recently, unless that admin is also using the develop/torrents branch then he would not see the same behavior.

There isn’t a setting on drone’s side.

Thanks, I have sent the response you gave to the Admin and they will revert accordingly, will it help you if I arrange you an account at nzbsa.co.za or is that not of interest or benefit to you… if not and you feel this is sorted on your side I will await there response and you can close this post then…

Regards,

I don’t think I need an account in this case, if there are still issues then having account might help, but for now I can reproduce it without one.