environment_dependency details passed to TilerFactory not being passed through to rio-tiler Reader #1250
-
| I'm writing a TiTiler server to publish two data sources. They're both STAC, but one is an openly available based S3 catalog (DE Australia) and the other a MinIO hosted catalog requiring authentication. It's implemented using two different routes, The issue I have is that I always get the following error when attempting to access public data (unsigned) without resorting to setting the environment variable (or it falling back to a credentials file). I'm guessing it extends to any other details I'd need to pass in via the AWSSession. Here's a stripped down example that should reproduce it. Then just try to hit one of the endpoints A similar issues was raised in #1177 , but I have a feeling that was fixed by setting the environment variables and not by passing in the What I think is going onI can see the Rasterio Env is created using the environment_dependency here, and if I check for I haven't confirmed if WorkaroundSo I noticed that the inner Rasterio Env is created with details that are pulled out of the Anyway, thanks for having a look at this. Appreciate it's quite a niche use case. Environment InformationHave reproduced across a few environments MacOS (arm64), and Linux (x86) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| Thanks for the issue @lachlanhurst The Rasterio/GDAL environment forwarding to readers is super hard to follow and mostly because in the case of the STAC Reader we will distribute the asset reading to sub-threads. I've tried to explain it in #186 I fix a temporary fix is to use |
Beta Was this translation helpful? Give feedback.
Thanks for the issue @lachlanhurst
The Rasterio/GDAL environment forwarding to readers is super hard to follow and mostly because in the case of the STAC Reader we will distribute the asset reading to sub-threads. I've tried to explain it in #186
I fix a temporary fix is to use
"MAX_THREADS=1"to avoid using threads within the STACReader