twscrape icon indicating copy to clipboard operation
twscrape copied to clipboard

SSL: WRONG_VERSION_NUMBER

Open takabinance opened this issue 10 months ago • 0 comments

I've recently upgraded to v0.12. I have also switched proxy servers.

After that I started sporadically getting the following message on all accounts. It works fine for hours and then it hits this issue and times all accounts out:

2024-04-26 20:50:04.938 | WARNING | twscrape.queue_client:req:243 - Unknown error. Account timeouted for 15 minutes. Create issue please: https://github.com/vladkens/twscrape/issues If it mistake, you can unlock account now with `twscrape reset_locks`. Err: <class 'ssl.SSLError'>: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006)

In 20 seconds, it locks about 100 accounts.

If I wait 15 minutes or execute twscrape reset_locks, everything works fine again. It seems to do this a few times per day (again, on all accounts).

If it's related to proxy server availability (??), it seems maybe better to add a delay (and maybe not lock for 15 minutes)... but is it possible it's related to proxy <> Twitter?

takabinance avatar Apr 26 '24 21:04 takabinance