What’s the bug?
When attempting to create a contact, the API request fails and the console logs:
500 Internal Server Error on POST /api/contacts/invite.
How can we reproduce it?
- Go to /contact route
- Enter an email
- Observe in the browser's console panel that the request to POST /api/contacts/invite returns a 500 Internal Server Error
What did you expect to happen?
The API should successfully create a contact and return a success response with a 201 status code.
Environment details
- OS: Windows 11
- Browser: Google Chrome
- Version: 139.0.7258.66
Screenshots or recordings (optional)
Log output (if any)
POST http://localhost:1284/api/contacts/invite 500 (Internal Server Error)
createContact @ QUERIES.ts:13
await in execute
onSubmit @ create-contact.tsx:57
What’s the bug?
When attempting to create a contact, the API request fails and the console logs:
500 Internal Server Error on POST /api/contacts/invite.How can we reproduce it?
What did you expect to happen?
The API should successfully create a contact and return a success response with a 201 status code.
Environment details
Screenshots or recordings (optional)
Log output (if any)
POST http://localhost:1284/api/contacts/invite 500 (Internal Server Error) createContact @ QUERIES.ts:13 await in execute onSubmit @ create-contact.tsx:57