Credential access key has length 20, should be 32
I am trying to connect an S3 client with AWS SDK Node and I have a problem with credentials: InvalidArgument: Invalid Argument: Credential access key has length 20, should be 32
1 Reply
Make sure you're generating your R2 Credentials via R2 -> Manage R2 Api Tokens
Magic link: https://dash.cloudflare.com/?to=/:account/r2/api-tokens
It'll give you everything you need there, including a 32-length access key. Not sure what you're using that is only 20 characters