Skip to content

Conversation

@abarciauskas-bgse
Copy link
Contributor

Prefetch S3 credentials to resolve errors emanating from earthaccess.Auth.get_s3_credentials in multithreaded contexts.

Resolves #92

Putting in draft state in case we decide to go with the simpler, but probably slower, credential lock option. In other words, continue to fetch S3 credentials in threads but using a credential lock.

This option seems preferable if we are not concerned about combining assets from multiple providers.

@abarciauskas-bgse abarciauskas-bgse self-assigned this Nov 3, 2025
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

📚 Documentation preview will be available at: https://developmentseed.github.io/titiler-cmr/pr-previews/pr-94/

Status: ✅ Preview is ready!

github-actions bot pushed a commit that referenced this pull request Nov 3, 2025
@abarciauskas-bgse abarciauskas-bgse changed the title Fix/prefetch s3 credentials [fix] prefetch s3 credentials Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multithreading in rio_tiler's MultiBandReader causing JSON decode errors from earthaccess.Auth.get_s3_credentials

2 participants