You are not authorized - please provide header

I am trying to use the sentinel hub batch statistical APO but I am getting a downloadfailedexception error. Any ideas how to fix this? I have an enterprise license so i am not sure why it says that I am not authorised.

You are not authorized - please provide header

DownloadFailedException: Failed to download from:
https://services.sentinel-hub.com/api/v1/statistics/batch
with HTTPError:
500 Server Error: Server Error for url: https://services.sentinel-hub.com/api/v1/statistics/batch
Server response: “HTTP ERROR 500 Request failed. URI: /api/v1/statistics/batch STATUS: 500 MESSAGE: Request failed. SERVLET: org.glassfish.jersey.servlet.ServletContainer-23e3a27f”

Hi @momin.ashraf ,

Could you please provide your request in detail? For example, how do you authenticate and how do you set the policy of your S3 bucket?

This could help us identify the issue. Thank you!

Authenticated using general EO browser authenticating steps. S3 bucket was authenticated using access key and secret

Hi @momin.ashraf ,

Thank you for the info. Please provide your request as well. It would be the best if you could provide us enough information so we can reproduce the error.

I’m assuming you’re using Python. If yes, it would be really helpful to paste your script here so we can take a look at it for you.