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

Unhandled error <class 'httpx.ConnectTimeout'>: #113

Closed
HaroldXue23 opened this issue Jan 24, 2024 · 1 comment
Closed

Unhandled error <class 'httpx.ConnectTimeout'>: #113

HaroldXue23 opened this issue Jan 24, 2024 · 1 comment
Milestone

Comments

@HaroldXue23
Copy link

HaroldXue23 commented Jan 24, 2024

Hi there. Thanks for sharing. I'm using cli commands but whenever I try to search something it says this:

2024-01-24 23:14:25.693 | WARNING  | twscrape.queue_client:req:224 - Unhandled error <class 'httpx.ConnectTimeout'>: 
2024-01-24 23:14:25.713 | INFO     | twscrape.accounts_pool:get_for_queue_or_wait:275 - No account available for queue "SearchTimeline". Next available at 23:29:25

When I check twscrape stats it says:

queue                       locked  available 
locked_SearchTimeline  1       0         

Total: 1 - Active: 1 - Inactive: 0

Anybody knows how to resolve it? Much appreciated!

@vladkens
Copy link
Owner

Hi, @HaroldXue23.

Hard to say what is it. Possible you have bad interned connection OR twitter have connection problems.

I updated code to not lock account for 15 minutes in such cases. Now on ConnectTimeout exception will be raised.

@vladkens vladkens added this to the v0.11 milestone Feb 10, 2024
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