Satellite-Aerial-Image-Retrieval icon indicating copy to clipboard operation
Satellite-Aerial-Image-Retrieval copied to clipboard

timeout

Open vlasvlasvlas opened this issue 3 years ago • 0 comments

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>

vlasvlasvlas avatar Feb 24 '21 18:02 vlasvlasvlas