I'm using urllib to send multiple requests to an API. Sometimes in the middle of the requests I get this error IOError: [Errno socket error] EOF occurred in violation of protocol (_ssl.c:581)
. Though I've handled the exception but I still don't know the explanation of why it occurs. I've seen some _ssl.c:504
error threads. Is there any similarity in both errors ? Is this a known bug in urllib ?
Asked
Active
Viewed 1,997 times
3

Rahul
- 3,208
- 8
- 38
- 68
-
You can try the solution here: http://stackoverflow.com/a/24166498/41957, but without a more detailed stack trace, it is hard to pinpoint your specific problem. Please provide a stack trace if you can. – chnrxn Mar 18 '15 at 16:34
-
For those looking for an answer to this problem when using `youtube-dl`: update to the latest version. Version 2015.06.04 solved that problem for me. – tanius Jul 24 '15 at 09:41