AwsTileRequest return Read timeout on endpoint URL: "None"

I try download data using following code:

from import AwsTileRequest

request = AwsTileRequest(

The output error:

timeout                                   Traceback (most recent call last)
File ~/anaconda3/envs/wbcrawler/lib/python3.9/site-packages/urllib3/, in HTTPResponse._error_catcher(self)
    443 try:
--> 444     yield
    446 except SocketTimeout:
    447     # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but
    448     # there is yet no clean way to get at it from this context.

File ~/anaconda3/envs/wbcrawler/lib/python3.9/site-packages/urllib3/, in, amt, decode_content, cache_content)
    566 with self._error_catcher():
--> 567     data = self._fp_read(amt) if not fp_closed else b""
    568     if amt is None:

File ~/anaconda3/envs/wbcrawler/lib/python3.9/site-packages/urllib3/, in HTTPResponse._fp_read(self, amt)
    531 else:
    532     # StringIO doesn't like amt=None
--> 533     return if amt is not None else

File ~/anaconda3/envs/wbcrawler/lib/python3.9/http/, in, amt)
    475 try:
--> 476     s = self._safe_read(self.length)
    477 except IncompleteRead:

File ~/anaconda3/envs/wbcrawler/lib/python3.9/http/, in HTTPResponse._safe_read(self, amt)
--> 102     raise ReadTimeoutError(endpoint_url=e.url, error=e)
    103 except URLLib3ProtocolError as e:
    104     raise ResponseStreamingError(error=e)

ReadTimeoutError: Read timeout on endpoint URL: "None"

Anyone can help? Thank advance!

Hi @hminhtri19 ,

Could you try to add an argument config=SHConfig() to your AwsTileRequest class? Other than this it works fine for me.

Note that class AwsTileRequest has been deprecated. It will remain in the codebase for now, but it won’t be actively maintained.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.