No fetch handler error when creating a AWS instance
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2023.4.6
What version of Remix are you using?
1.17
Steps to Reproduce
FetchError [ERR_NO_HANDLER]: No fetch handler defined and no upstream to proxy to specified.
Make sure you're exporting a default object containing a fetch function property.
I get this error when i try to create a aws.S3() instance. The code looks like this:
const s3 = new aws.S3({
accessKeyId: 'process.env.ACCESS_KEY_ID',
secretAccessKey:
'process.env.SECRET_ACCESS_KEY',
region: 'auto',
signatureVersion: 'v4',
endpoint:
'process.env.ENDPOINT',
});
Expected Behavior
I expect it to work without any problems, just like it works in a blank Remix project.
Actual Behavior
It triggers the error: FetchError [ERR_NO_HANDLER]: No fetch handler defined and no upstream to proxy to specified.
Make sure you're exporting a default object containing a fetch function property.
Not sure if it is related but I think there may be missing functions that aws-sdk expects.
Try @aws-sdk/client-s3 package instead?
Reference: https://github.com/remix-run/remix/discussions/2800
Closing due to lack of response. Please re-open if still an issue.