Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Handling Exceptions while streaming #1575

Closed
m11ad opened this issue Apr 26, 2021 · 1 comment
Closed

Handling Exceptions while streaming #1575

m11ad opened this issue Apr 26, 2021 · 1 comment
Labels
Discussion This was converted/moved from/to a discussion Duplicate This is a duplicate Question This is a question Stale This is inactive, outdated, too old, or no longer applicable

Comments

@m11ad
Copy link

m11ad commented Apr 26, 2021

Hi, I get the exception bellow in the line stream.filter(track=keywords, languages=["en"])

Exception has occurred: ProtocolError
('Connection broken: IncompleteRead(4 bytes read)', IncompleteRead(4 bytes read))

def main(keywords):
    api = create_api()
    tweets_listener = FavRetweetListener(api)
    stream = tweepy.Stream(api.auth, tweets_listener)
    stream.filter(track=keywords, languages=["en"])


How should I handle this?

@Harmon758
Copy link
Member

This should already be fixed in the development version on the master branch with 68e19cc.
See also the relevant issues closed with that commit: #237, #448.

For code block usage, see https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks.

@Harmon758 Harmon758 added Duplicate This is a duplicate Question This is a question Stale This is inactive, outdated, too old, or no longer applicable labels Apr 26, 2021
@tweepy tweepy locked and limited conversation to collaborators Apr 26, 2021
@Harmon758 Harmon758 added the Discussion This was converted/moved from/to a discussion label Apr 26, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Discussion This was converted/moved from/to a discussion Duplicate This is a duplicate Question This is a question Stale This is inactive, outdated, too old, or no longer applicable
Projects
None yet
Development

No branches or pull requests

2 participants