Skip to content

Bug: Request fails on POST /api/contacts/invite when trying to create contact #241

@Yashxp1

Description

@Yashxp1

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)

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions