Skip to main content

I’m having trouble loading data.


~\AppData\Roaming\Python\Python39\site-packages\sentinelhub-3.8.0-py3.9.egg\sentinelhub\download\handlers.py in new_download_func(self, request)
45 and exception.response.status_code != requests.status_codes.codes.TOO_MANY_REQUESTS
46 ):
---> 47 raise DownloadFailedException(
48 _create_download_failed_message(exception, request.url), request_exception=exception
49 ) from exception

DownloadFailedException: Failed to download from:
https://services.sentinel-hub.com/api/v1/batch/process
with HTTPError:
400 Client Error: Bad Request for url: https://services.sentinel-hub.com/api/v1/batch/process
Server response: "{"status": 400, "reason": "Bad Request", "message": "Access denied - bucket in wrong AWS region or not writable by Sentinel Hub", "code": "COMMON_BAD_PAYLOAD"}"

I’ve tried several times to fix it and it’s configured as required.

I may have missed any part, please advise.

Hi,


Your returned error indicates one of 2 things:


"Access denied - bucket in wrong AWS region or not writable by Sentinel Hub"


Either your bucket is in the wrong AWS region; Batch Processing API is only deployed in AWS EU (Frankfurt) and AWS US (Oregon)


Or you have not set your bucket policy correctly. I suggest going through the documentation, specifically here to fix your issue.


If you are still having trouble, then let us know.


Dảnein kār læ̂w tæ̀ yạng pĕn h̄emụ̄xn deim c̄hạn thả tām thī̀ khū̀mụ̄x næanả


Listen


59 / 5,000



Translation results



Translation result


star_border


bucket policy

{

“Version”: “2012-10-17”,

“Statement”: 1

{

“Sid”: “Sentinel Hub permissions”,

“Effect”: “Allow”,

“Principal”: {

“AWS”: “arn:aws:iam::7777777777777:root”

},

“Action”: “s3:",

“Resource”:

“arn:aws:s3:::sentineltongthtest”,

"arn:aws:s3:::sentineltongthtest/


]

}

]

}


s3



done but still the same I did as the guide suggested.


Hi,


There a couple of typos in your bucket policy. Try this:


    "Version": "2012-10-17",
"Statement": [
{
"Sid": "Sentinel Hub permissions",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::614251495211:root"
},
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3::: sentineltongthtest",
"arn:aws:s3::: sentineltongthtest/*"
]
}
]
}

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


Reply