Process API - how to handle 'exceeded limit'

Hi @chung.horng, thanks for the tips, however I must say I’m a bit confused also with the response to (1) :smiley:, here’s the request I’m currently testing:

request = sh.SentinelHubRequest(evalscript=evalscript,
                                                       data_folder=self.config.cache_dir,
                                                       input_data=[
                                                       sh.SentinelHubRequest.input_data(
                                                                             data_collection=data_collection,
                                                                             time_interval=(start_date, end_date),
                                                                             maxcc=maxcc,
                                                                             mosaicking_order=mosaicking_order)
                                        ],
                                        responses=[sh.SentinelHubRequest.output_response("default", sh.MimeType.TIFF)],
                                        bbox=bbox,
                                        size=sh.bbox_to_dimensions(bbox, resolution=self.config.resolution),
                                        config=self.sh_config)
request.get_data(save_data=True, max_threads=4, raise_download_errors=True)

Specifically, I’m a bit confused on two points: first, which kind of output responses should I request, and second the get_data(save_data=True). From your answer, I gather that I should be able to do get_data() first, without saving yet, edit the name and then call save_data(), is it correct?

Regarding (2), I’m actually using the BBoxSplitter to produce a list of bboxes and then I simply iterate over them. This works, however with large areas it produces a lot of requests that end up in “rate limit exceeded”, because of the PU/min upper bound of my account I suppose. I was hoping for the raise_download_errors flag to throw an exception, but instead the client downloads an empty TIFF and it just prints a warning.

Thanks again!