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

Allow timeout on v2 Client requests #2024

Open
DashKenny opened this issue Dec 2, 2022 · 0 comments
Open

Allow timeout on v2 Client requests #2024

DashKenny opened this issue Dec 2, 2022 · 0 comments

Comments

@DashKenny
Copy link

DashKenny commented Dec 2, 2022

Hi,

I've been looking into some long running requests we've got, and noticed that the reason appears to be that Tweepy does not set (or allow you to set) a timeout on BaseClient.request in any way. This means that when doing simple things such as trying to get a user, we are waiting for 15 minutes.

It would be great to have more control of the retries on the client and not get stuck for so long. I could make a PR to easily allow setting a global timeout on the client. Additionally we could update the existing methods to take in an override timeout as well if we wanted.

@Kennpow Kennpow mentioned this issue Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@DashKenny and others