You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to use this with Cloudflare R2 it doesn't work giving an error:
Error in handleSubmit on / route: TypeError: Cannot read properties of undefined (reading 'forEach')
Error: Invalid response from route /api/presigned-urls.json: handler should return a Response object
To Reproduce
clone main branch,
update line 29 of storage.js with fetch(https://${S3_COMPATIBLE_ACCOUNT_ID}.r2.cloudflarestorage.com,
update .env with cloudflare r2 credentials
Describe the bug
When you try to use this with Cloudflare R2 it doesn't work giving an error:
Error in handleSubmit on / route: TypeError: Cannot read properties of undefined (reading 'forEach')
Error: Invalid response from route /api/presigned-urls.json: handler should return a Response object
To Reproduce
clone main branch,
update line 29 of storage.js with fetch(
https://${S3_COMPATIBLE_ACCOUNT_ID}.r2.cloudflarestorage.com
,update .env with cloudflare r2 credentials
Here is a link to the cloudflare r2 example for aws-sdk-js
https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js-v3/
Expected behaviour
the api to to return a response with the error message included
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
NA
Additional context
NA
The text was updated successfully, but these errors were encountered: