food-oasis
food-oasis copied to clipboard
Check error handling for emails
Overview
Following error gets generated while submitting contact us form on localhost as well as on codespaces, however, the confirmation email is delivered.
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Sending contact form email failed.".
Action Items
- [ ] Test if this happens in your local environment
- [ ] Decide if this is the expected behavior
- [ ] Fix the error if required
Resources/Instructions
- Related file: https://github.com/hackforla/food-oasis/blob/develop/server/app/services/sendgrid-service.ts