개발일지/오류문제해결
error connecting : ('connection aborted.', timeouterror(10060, '연결된 구성원으로부터 응답이 없어 연결하지 못했거나, 호스트로부터 응답이 없어 연결이 끊어졌습니다', none, 10060, none))
자코린이
2022. 9. 7. 01:21
python requests 함수에 에러가 나옵니다. 이는 여러가지 원인이 있습니다.
1. 많은 인터넷 연결 문제
2. 서버 세팅 문제
3. 인터넷 속도 문제
등 많은 원인이 있는 만큼 잡기 힘든 에러입니다.
저의 해결방법으로는 연결 시간을 걸어 연결속도를 기다리는 방법을 사용하였습니다.
response = requests.get(param_url, timeout=20)
https://stackoverflow.com/questions/15820739/python-urlerror-urlopen-error-errno-10060
Python: URLError: <urlopen error [Errno 10060]
OS: Windows 7; Python 2.7.3 using the Python GUI Shell I'm trying to read a website through Python, and several authors use the urllib and urllib2 libraries. To store the site in a variable, I've...
stackoverflow.com
자세히 정리해 주신 블로그로 아래 블로그를 추천합니다.
https://hsyang.net/posts/python-requests-library-timeout/
[Python] Requests 라이브러리의 Connection Timeout에 관하여
Python Requests 라이브러리의 Connection Timeout은 당신이 생각하는 Connection Timeout이 아니다.
hsyang.net