How to debug credetials not loaded issue? #810
-
Here is my code.
This code throws credentials cache returned CredentialsNotLoaded. There is a method called Because of this issue, I am getting S3 operation timed out (500) while uploading files to S3 bucket. Please guide me through how to debug/resolve the issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
is there a reason you're overriding the credentials provider with the default provider? I don't think that would do anything. If you're trying to get something to work locally, I'd suggest In general, the best way to debug the SDK is using
Then, rerun with However, if the operation timed out, that implies that you aren't able to actually connect to S3–if credentials couldn't be loaded, it would fail-fast with a different error. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
is there a reason you're overriding the credentials provider with the default provider? I don't think that would do anything. If you're trying to get something to work locally, I'd suggest
s3_config.builder.credentials_provider(Credentials::for_tests())
in theif testing
block.In general, the best way to debug the SDK is using
tracing
—Then, rerun with
RUST_LOG=debug
set.However, if the operation timed out, that implies that you aren't able to actually connect to S3–if credentials couldn't be loaded, it would fail-fast with a different error.