-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
SSLError: EOF occurred in violation of protocol (_ssl.c:590) #3391
Comments
When you say you get stuck, is it just that the exception fires? Or do follow-up requests not work? I ask because transient network errors do occur, and if you're making large numbers of web requests you should consider implementing some kind of retry logic in the face of them. |
The exception fires. Follow-up requests seem to work, but I have not yet tried to implement retry. I was afraid I was being against the rules of making too many requests to a server or something, I guess. I will definitely try that and update this thread. Thanks! |
Well for what it's worth, because you're using |
For anyone with this problem: I've fixed it by following @Lukasa 's suggestions and added this just after importing requests:
Then, where I was using Hopefully this helps, and thanks for your help @Lukasa ! |
I had exactly the same error message, the problem was I didn't have ndg-httpsclient installed https://github.com/kennethreitz/requests/issues/3605 |
@variable I installed ndg-httpsclient but the same error:urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:748)> |
Please bear with me as I'm quite new with Python and github in general.
I have been using requests to scrape data from the Play Store. I need to make a large amount of requests (about 20k). It works great for about 3000-4000 requests but gets stuck after that (SSL Error). I am not familiar with SSL and requests, so I don't know what causes this.
Error:
The-efi, on this github, seemed to have the same problem on this thread: https://github.com/kennethreitz/requests/issues/3006 (see below, he was not the OP) but I was not able to find the thread he opened for further assistance. I use Python 2.7. as well.
I have been stuck on this for quite a while now and I can't find any answer here nor StackOverflow (the answer was probably right under my nose but I've had trouble understanding them because of my lack of knowledge in SSL & requests).
Thank you in advance for your help, and sorry if something is unclear -- please let me know.
The text was updated successfully, but these errors were encountered: