Hello !
I’m regularly using sentinelhub library, specifically I make use of the AwsTileRequest() class to regularly query and save on my disks specific Sentinel-2 L2A images from the AWS repository.
Since approximately 10 days, I have this error whichs occurs regularly but quite randomly when I launch the same script I always do :
Traceback (most recent call last):
File "<ipython-input-2-961ca4d497c3>", line 45, in download_aws_tile_L2A_basic
tile_request = AwsTileRequest(
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/data_request.py", line 856, in __init__
super().__init__(**kwargs)
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/data_request.py", line 758, in __init__
super().__init__(AwsDownloadClient, **kwargs)
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/data_request.py", line 47, in __init__
self.create_request()
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/data_request.py", line 860, in create_request
self.aws_service = SafeTile(self.tile, self.time, self.aws_index, bands=self.bands,
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/aws_safe.py", line 166, in __init__
super().__init__(*args, **kwargs)
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/aws.py", line 502, in __init__
self.aws_index = self.get_aws_index()
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/aws.py", line 557, in get_aws_index
tile_info_list = get_tile_info(self.tile_name, self.timestamp, all_tiles=True)
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/opensearch.py", line 61, in get_tile_info
for tile_info in search_iter(start_date=start_date, end_date=end_date):
File "/home/linguere/louise/miniconda3/envs/am-map-mini/lib/python3.8/site-packages/sentinelhub/opensearch.py", line 173, in search_iter
for tile_info in response["features"]:
TypeError: string indices must be integers
I really don’t understand why this issue pops, sometimes for the same query its throws this error a couple of times and then I re-launch it later without changing anything and it runs normally. Please help me understand what is happening because it is becoming very time-consuming to query images now, thank you !