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

Filtered stream example can cause 429 error #140

Open
paulvav opened this issue Oct 11, 2023 · 1 comment
Open

Filtered stream example can cause 429 error #140

paulvav opened this issue Oct 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@paulvav
Copy link

paulvav commented Oct 11, 2023

Describe the bug

The example code for filtered streams (python) does not properly close the stream. Upon using this code repeatedly it is possible to open many streams past your limit, and not be able to disconnect them. This can lock you out of using the Twitter filtered stream API for however long it takes the twitter server to disconnect the streams.

I have been currently been locked out for a day, and receive this response every time I try to reconnect.

'{"title":"ConnectionException","detail":"This stream is currently at the maximum allowed connection limit.","connection_issue":"TooManyConnections","type":"https://api.twitter.com/2/problems/streaming-connection"}'

To Reproduce
Run example code multiple times until you receive the 429 error.

Expected behavior
Example code should include a disconnect, so that developers are aware of this possibility. Or a way to force the twitter server to disconnect all current open connections should be released.

Additional context
Add any other context about the problem here.

@paulvav paulvav added the bug Something isn't working label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@paulvav and others