Date
1 - 4 of 4
The us-west-2 location constraint is incompatible for the region specific endpoint this request was sent to.
Pritimoy Podder
Exactly, thanks, Sean. |
|
Sean Gillies
Thanks for following up! You can also unset AWS_END_POINT since s3.amazonaws.com is the default. On Thu, Feb 24, 2022 at 6:48 AM <pritimoypodder@...> wrote: This is now fixed. I had an environment variable for "AWS_END_POINT" which is now updated to "s3.amazonaws.com" to make it work. -- Sean Gillies |
|
Pritimoy Podder
This is now fixed. I had an environment variable for "AWS_END_POINT" which is now updated to "s3.amazonaws.com" to make it work.
|
|
Pritimoy Podder
Hi,
I tried to run the following command from a Jupuyter Hub terminal but failed. rio --aws-requester-pays info s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2014/168/061/LC08_L2SP_168061_20140102_20200912_02_T1/LC08_L2SP_168061_20140102_20200912_02_T1_SR_B4.TIFError: GDAL version: 3.4.0Traceback (most recent call last):File "rasterio/_base.pyx", line 261, in rasterio._base.DatasetBase.__init__File "rasterio/_shim.pyx", line 78, in rasterio._shim.open_datasetFile "rasterio/_err.pyx", line 216, in rasterio._err.exc_wrap_pointerrasterio._err.CPLE_AWSError: The us-west-2 location constraint is incompatible for the region specific endpoint this request was sent to.During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/opt/conda/bin/rio", line 8, in <module>sys.exit(main_group())File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 829, in __call__return self.main(*args, **kwargs)File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 782, in mainrv = self.invoke(ctx)File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1259, in invokereturn _process_result(sub_ctx.command.invoke(sub_ctx))File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1066, in invokereturn ctx.invoke(self.callback, **ctx.params)File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 610, in invokereturn callback(*args, **kwargs)File "/opt/conda/lib/python3.9/site-packages/click/decorators.py", line 21, in new_funcreturn f(get_current_context(), *args, **kwargs)File "/opt/conda/lib/python3.9/site-packages/rasterio/rio/info.py", line 66, in infowith ctx.obj['env'], rasterio.open(input) as src:File "/opt/conda/lib/python3.9/site-packages/rasterio/env.py", line 437, in wrapperreturn f(*args, **kwds)File "/opt/conda/lib/python3.9/site-packages/rasterio/__init__.py", line 220, in opens = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)File "rasterio/_base.pyx", line 263, in rasterio._base.DatasetBase.__init__rasterio.errors.RasterioIOError: The us-west-2 location constraint is incompatible for the region specific endpoint this request was sent to. rasterio version: 1.2.10 The following command works as expected from the same environment and give me the feeling that the AWS access, secret access keys and region are properly set. aws s3api get-object --bucket usgs-landsat --key collection02/level-2/standard/oli-tirs/2020/026/027/LC08_L2SP_026027_20200827_20200906_02_T1/LC08_L2SP_026027_20200827_20200906_02_T1_MTL.txt --request-payer requester LC08_L2SP_026027_20200827_20200906_02_T1_MTL.txtAny thoughts? |
|