Connection to amazon s3 bucket

I’m having issues, with an s3 bucket and node web service. short story, it works with my local express server and insomnia, just fine, I have the same env variables, on render as I do in my .env locally, looking for any tips. I don’t think my service is connecting to s3 properly. Not sure if I need to mess with anything on S3 or not, tried with and withou cors settings on the bucket

[
{
“AllowedHeaders”: [
“*”
],
“AllowedMethods”: [
“GET”,
“POST”
],
“AllowedOrigins”: [
https://sharebnb-be.onrender.com
],
“ExposeHeaders”:
}
]

Oct 25 06:35:00 PM CredentialsProviderError: Could not load credentials from any providers
Oct 25 06:35:00 PM at /opt/render/project/src/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js:13:11
Oct 25 06:35:00 PM at /opt/render/project/src/node_modules/@aws-sdk/property-provider/dist-cjs/chain.js:11:28
Oct 25 06:35:00 PM at runMicrotasks ()
Oct 25 06:35:00 PM at processTicksAndRejections (internal/process/task_queues.js:95:5)
Oct 25 06:35:00 PM at async coalesceProvider (/opt/render/project/src/node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js:14:24)
Oct 25 06:35:00 PM at async SignatureV4.credentialProvider (/opt/render/project/src/node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js:33:24)
Oct 25 06:35:00 PM at async SignatureV4.signRequest (/opt/render/project/src/node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js:86:29)
Oct 25 06:35:00 PM at async /opt/render/project/src/node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js:16:18
Oct 25 06:35:00 PM at async StandardRetryStrategy.retry (/opt/render/project/src/node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js:51:46)
Oct 25 06:35:00 PM at async /opt/render/project/src/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/flexibleChecksumsMiddl

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.