Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle IncompleteRead error in Stream #237

Closed
mihneagiurgea opened this issue Jan 17, 2013 · 3 comments
Closed

Handle IncompleteRead error in Stream #237

mihneagiurgea opened this issue Jan 17, 2013 · 3 comments
Labels
Bug This is regarding a bug with the library
Milestone

Comments

@mihneagiurgea
Copy link

The retry logic does not always work, because the try/except block does not catch all possible errors (sometimes resp.read() can throw IncompleteRead errors, in which case the request is not retried).

benfei pushed a commit to benfei/tweepy that referenced this issue Oct 16, 2016
This should handle both cases of incomplete read catched by requests, or
catched by tweepy.

This resolves tweepy#237, resolves tweepy#448, resolves tweepy#536, resolves tweepy#650,
resolves tweepy#691, resolves tweepy#798.

Similar to tweepy#498.
@Harmon758
Copy link
Member

Harmon758 commented Apr 26, 2019

This seems to have been fixed with fae9091 (#498), but was reverted with 34af675, due to #501.

For discussion on the cause of this issue and how to handle it, see #448 and these Stack Overflow posts:
https://stackoverflow.com/q/26638329/6191255
https://stackoverflow.com/q/53326879/6191255
https://stackoverflow.com/q/48034725/6191255
https://stackoverflow.com/q/28717249/6191255

The error seems to be indicative of a full buffer disconnect. For reference:
https://developer.twitter.com/en/docs/tutorials/consuming-streaming-data
https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/disconnections-explained
https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/connecting

@fahadshery

This comment has been minimized.

@Suryakumar007

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is regarding a bug with the library
Projects
None yet
Development

No branches or pull requests

4 participants