(503) Server Unavailable

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
drmargarit
Posts: 12
Joined: Wed Feb 24, 2010 1:01 pm

(503) Server Unavailable

Post by drmargarit » Fri Mar 13, 2020 4:36 pm

Occasionally, I have trouble recording a channel using the http interface and I want to find out why. I always get the 503 error. Is that error message the same whether the error is low signal strength, unavailable tuner or ???
Is there any way to differentiate?
Is there a way to check the signal strength via http?

drm

NedS
Silicondust
Posts: 842
Joined: Mon Dec 10, 2018 12:38 pm

Re: (503) Server Unavailable

Post by NedS » Fri Mar 13, 2020 7:00 pm

If the request cannot be completed at this time (for example all tuners are in use) the tuner will return “503 Service Unavailable”.

If the program cannot be not found in the stream within 5 seconds or the program cannot be authorized within 5 seconds the tuner will return “503 Service Unavailable”.

If the program requires content-protection not requested by the client the tuner will return “503 Service Unavailable” after 5 seconds. This error code may change in the future to return a more relevant error code.

nickk
Silicondust
Posts: 15761
Joined: Tue Jan 13, 2004 9:39 am

Re: (503) Server Unavailable

Post by nickk » Fri Mar 13, 2020 7:11 pm

Look for the "X-HDHomeRun-Error" http header in the 503 response - this will tell you more specifically what the problem is.

Nick

gtb
Expert
Posts: 4029
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: (503) Server Unavailable

Post by gtb » Sun Mar 15, 2020 3:16 pm

nickk wrote:
Fri Mar 13, 2020 7:11 pm
Look for the "X-HDHomeRun-Error" http header in the 503 response - this will tell you more specifically what the problem is.
And as I recall, for after the fact information, the tuner system log has additional details (I don't know the exact texts, but presume it is substantially equivalent to the X-HDHomeRun-Error header), which you should be able to access via the tuner web interface.

drmargarit
Posts: 12
Joined: Wed Feb 24, 2010 1:01 pm

Re: (503) Server Unavailable

Post by drmargarit » Wed Mar 18, 2020 9:43 am

Thanks for the suggestions. I will look at the header and the log.

drm

gtb
Expert
Posts: 4029
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: (503) Server Unavailable

Post by gtb » Wed Mar 25, 2020 7:45 pm

drmargarit wrote:
Fri Mar 13, 2020 4:36 pm
Is there a way to check the signal strength via http?
If I understand this part of your question, as I recall (I have a stash with some WIP that I never fully integrated into one of my codes, but I believe it was at least partially working at one point) after a successful tune, the http response header includes the X-HDHomeRun-Resource which provides the tuner reference, which can then be used to associate the response from the http://<device_ip>/status.json response to get values such as the signal strength, quality, and symbol quality (and some other useful information).

Post Reply