IT/프로그래밍
Python - URLLIB - GetAddrInfo Failed
NineKY
2009. 9. 25. 11:17
urllib 로 네트워크 쿼리를 날리다가 보면 가끔 만나는 에러다.
에러 코드는 '11001', 메시지는 다음과 같이 나온다.
ex) [Errno socket error] [Errno 11001] getaddrinfo failed
getaddrinfo failed means, that the hostname could not be resolved in DNS.
This can be due to one of the following:
- no internet connection
- dns server not available
- dns server has no or out-of-dated records for the queried hostname.