Skip to content
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

timeout #3

Open
vlasvlasvlas opened this issue Feb 24, 2021 · 0 comments
Open

timeout #3

vlasvlasvlas opened this issue Feb 24, 2021 · 0 comments

Comments

@vlasvlasvlas
Copy link

Hi!

i tried to use the script and got timeout:

raceback (most recent call last):
File "C:\Python\lib\urllib\request.py", line 1350, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Python\lib\http\client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Python\lib\http\client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Python\lib\http\client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Python\lib\http\client.py", line 1010, in _send_output
self.send(msg)
File "C:\Python\lib\http\client.py", line 950, in send
self.connect()
File "C:\Python\lib\http\client.py", line 921, in connect
self.sock = self._create_connection(
File "C:\Python\lib\socket.py", line 808, in create_connection
raise err
File "C:\Python\lib\socket.py", line 796, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to respond

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "aerialImageRetrieval.py", line 223, in
main()
File "aerialImageRetrieval.py", line 216, in main
if imgretrieval.max_resolution_imagery_retrieval():
File "aerialImageRetrieval.py", line 129, in max_resolution_imagery_retrieval
retrieve_sucess, horizontal_image = self.horizontal_retrieval_and_stitch_image(tileX1, tileX2, tileY, levl)
File "aerialImageRetrieval.py", line 181, in horizontal_retrieval_and_stitch_image
image = self.download_image(quadkey)
File "aerialImageRetrieval.py", line 60, in download_image
with request.urlopen(BASEURL.format(quadkey)) as file:
File "C:\Python\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Python\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Python\lib\urllib\request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "C:\Python\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Python\lib\urllib\request.py", line 1379, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "C:\Python\lib\urllib\request.py", line 1353, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because connected host has failed to respond>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant