Closed radumas closed 5 years ago
(Posted this on slack but reposting here for completeness)
I've seen this before and it is implicitly solved in #50 , what happens is the TTC server returns a 404 every now and then (It's kinda flakey) which gets rendered as HTML. #50 solved this by letting it error then catching a ClientResponseError. We could probably be fancier about it, but to what end?
Periodically we get the below errors (the number in (275) is the line number in
ttc_api_scraper.py
printing that log message).But the scraper then sleeps for 2s for that station, and tries 3 more times, and typically succeeds.