Closed lg8897203 closed 3 years ago
I'm also experiencing this issue with high frequency. I suspect the difficulty in finding the error comes from the high rate of backslashes and unicode escape characters in the output; there isn't a match between the given column and the actual column with the error in the document you see.
Followup: I have not observed this issue in ~4 hours of work on latest master. Looks to have already been resolved; can't prove a negative, but it's definitely more stable
Major props to this project for not altering their API in all the time since the last PyPI update!
Followup: this is not fixed. I happen to not run into it for an extended period of time.
Twitter is sending incomplete JSON, sometimes in the middle of a key or object. I can't trigger it with any consistency, but I have an example object of what twitter
(library) threw.
Followup: this is not fixed. I happen to not run into it for an extended period of time.
Twitter is sending incomplete JSON, sometimes in the middle of a key or object. I can't trigger it with any consistency, but I have an example object of what
Hi @gregdan3
I have already fixed this issue.
The problem is caused by the error called "http_client.IncompleteRead". I used the retry mechanism "_handle_response_with_retry in api.py" to deal with this problem. When the program catch this error, a retry is triggered.
Hi @lg8897203, interesting that the retry mechanism would fix this problem. Can you precise the way you used it? Did you just call the Twitter class using the retry=True argument, or did you also edit the library's code so that handle_response_with_retries catches more cases of exceptions?
Hi @boogheta,
I changed the way of requesting the url from urllib.request.urlooen() to requests. At last, the problem has finally fixed.
Hello @lg8897203, do you mean you added requests as a dependency within a fork of the lib?
Recently, I got this json decode error in api.py. The error as follow:
I checked the error position and found nothing was wrong. So confused.