bvanheu / pytoutv

TOU.TV client library and user interfaces written in Python 3
96 stars 23 forks source link

timeout on https://api.tou.tv/v1/toutvapiservice.svc/json/GetEmissions #63

Closed sirber closed 7 years ago

sirber commented 9 years ago

timeout on https://api.tou.tv/v1/toutvapiservice.svc/json/GetEmissions

would it be the website or a problem with python?

antoinedeschenes commented 9 years ago

The v1 api is always going up and down on the tou.tv website. Just wait a few minutes and it should come back.

eepp commented 9 years ago

Yes, perhaps 10 seconds is not enough for the timeout?

antoinedeschenes commented 9 years ago

I guess retries after timeout would be more appropriate. I bet the site won't answer if you don't send a new request after a while. I believe V2 would be a better solution, but not without rewriting half of the code.

sirber commented 9 years ago

same on windows. guess it's a toutv issue

sirber commented 9 years ago

Worked after retrying a few time. Could the script retry a finite number of times (like 10) in case of timeout?

simark commented 8 years ago

I still get a lot of them:

$ toutv -n list
Timeout error (10 s for "https://api.tou.tv/v1/toutvapiservice.svc/json/GetEmissions")

@antoinedeschenes: do you have any information about the v2 API?