Invalid token or malformed token on client build #1304
Unanswered
DoIevenLift
asked this question in
Q&A
Replies: 1 comment 2 replies
-
How are you setting the environment variables for |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
This may be completely unrelated to the sdk. I've tried to build an s3 client via the documentation using:
I've also tried doing this without setting the region and relying on the an env var for this.
This will always return an error stating that the supplied token is invalid or malformed. If however I build the client using this method:
This will successfully build and when doing .list_buckets() method this will route a successfully call.
I've validated the env vars, validated the credentials via local logging etc and these credentials are all correct according to the IAM user. Anyone encountered / have any suggestions for what could cause the default block to fail?
If this is the incorrect spot please let me know
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions