All hands, I am doing a JSON parse as a part of web scraping and pretty regularly I get this error UnterminateUnterminated string starting at: line 1 column 'some column' (char ' some char') The page can be reparsed later after I catch this exception and it can return OK or again give this error, at random. I use simple JSON loads() approach.
So, the question is: are there any ways to avoid this specific exception? Right now my timeouts are around 30-40 seconds, I am not sure that increasing them leads to any effect as the error appears at random.
Aucun commentaire:
Enregistrer un commentaire