This repository was archived by the owner on Nov 6, 2024. It is now read-only.
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
urllib.error.URLError: <urlopen error [Errno 11001] needs analysis and workaround #1
Open
Description
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Programs\Python\Python36-32\lib\urllib\request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>
Whilst running the main for a while, this error suddenly occurred. Maybe the internet dropped?
Can someone help me figure this out?
What causes the error?
what could we do when this error occurs, do we retry? timeout? How can we handle it?