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

Handle R2 upload errors #50

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

MatthewStanciu
Copy link
Member

@MatthewStanciu MatthewStanciu commented Sep 12, 2024

First step for #47

A future PR will display this error in a toast or modal instead of JavaScript alert, but want to get error handling out first since people are running into this.

Another future PR will prevent the website from crashing if the image doesn't load.

Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
passport-data-pages ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 3:29am

Copy link
Collaborator

@TheShadowEevee TheShadowEevee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, wasn't able to run the entire flow locally cause my local database got wiped, but poking at it I don't predict any issues

@@ -29,7 +29,7 @@ export async function POST(request: Request) {
portrait: portraitImage,
sendToDb: sendToDb === "true",
},
request.url,
Copy link
Collaborator

@TheShadowEevee TheShadowEevee Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, is there a reason some extra commas were removed? I'm not going to comment on every one of these

Edit: Didn't finish my comment! I was gonna say there's three more instances of commas being removed in actions.ts

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My Prettier did that, is it out of line with the project settings?

@MatthewStanciu MatthewStanciu merged commit 7833545 into main Sep 12, 2024
2 checks passed
@MatthewStanciu MatthewStanciu deleted the matthewstanciu/handle-r2-upload-errors branch September 12, 2024 03:42
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

Successfully merging this pull request may close these issues.

2 participants