Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Script stops after an internal server error #6

Closed
SirJohnDoe opened this issue Jan 20, 2016 · 1 comment
Closed

Script stops after an internal server error #6

SirJohnDoe opened this issue Jan 20, 2016 · 1 comment

Comments

@SirJohnDoe
Copy link

For some reason the horizon site seems to time out or be unavailable for short periods of time. The script will output a 500 Internal Server Error when retrieving listings, yet the listings appear to be available immediately after when running the script again, so a simple retry of the script would still make sure that the program listings are retrieved.

Added 67 programmes for channel AMC
Traceback (most recent call last):
File "/home/hts/horepg.py", line 209, in
nr = nr + listings.obtain(xmltv, channel_id, start, end)
File "/home/hts/horepg.py", line 171, in obtain
raise Exception('Failed to GET listings url:', response.status, response.reason)
Exception: ('Failed to GET listings url:', 500, 'Internal Server Error')
hts@raspberrypi:~$

Another thing, the deamon will run every 24h after it's completed the initial run, it'd be better if you could specify an exact time at which it should run and then repeat after 24 hours, because now there's no consistency and script requires resources as well which you can't allocate to a specific time slot.

Other than that it works great, cheers.

@beralt beralt closed this as completed in 2dad9ba Jan 25, 2016
@beralt
Copy link
Owner

beralt commented Jan 25, 2016

That was a very irritating issue that has been bugging me for a while too, so I did a quick fix. Thanks for the detailed report. I have some other improvements in testing with regards to the planning of data fetching (and distributing them more evenly). So I'm working on the second part.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants