Closed cosbgn closed 1 week ago
Hi @cosbgn - thanks for reaching out.
Can you share the full error and your SDK that would give us some insight into this behavior? Based on the report, my guess on the culprit is the endpoint value.
Since you mentioned this works on localhost and fails when deployed with Cloudflare workers, please note AWS does not guarantee support for 3rd party offerings like Cloudflare Workers. AWS supports Lambda as a serverless offering.
@cosbgn You got any solution?
Yes, the issue is caused by unenv here I made a small reproduction: https://github.com/unjs/unenv/issues/279 I guess this falls out of scope for S3 so I'll close this issue and leave the one on unenv open
Checkboxes for prior research
Describe the bug
Can't initialize the SDK in cloudflare workers. Locally it works.
SDK version number
"@aws-sdk/client-s3": "^3.608.0"
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
cloudflare workers
Reproduction Steps
This fails with:
Cannot convert object to primitive value
.Observed Behavior
This works on localhost but fails when deployed (cloudflare workers)
Expected Behavior
it works
Possible Solution
No response
Additional Information/Context
No response