Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with Cloudflare R2 #1

Open
rakataprime opened this issue May 7, 2023 · 1 comment
Open

Bug with Cloudflare R2 #1

rakataprime opened this issue May 7, 2023 · 1 comment

Comments

@rakataprime
Copy link

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):

  • OS: arch linux
  • Browser thorium/ chromium
  • Version 109.0.5361.0

Smartphone (please complete the following information):
NA
Additional context
NA

@rodneylab
Copy link
Owner

Hey @rakataprime, thanks for reaching out. I think this has been fixed now. Hopefully it is working for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants