Skip to content

[BUG] POST /api/v1/auth/register returns 404 on production, preventing new user registration #995

@Sree-8639

Description

@Sree-8639

Describe the bug

New users cannot create an account through the registration page because the registration API endpoint returns HTTP 404 Not Found.

When the registration form is submitted, the frontend sends a POST request to:

/api/v1/auth/register

The request fails with a 404 response, causing the UI to display the generic error message:

Registration failed. Please try again.

As a result, no account is created, and users are unable to access the application.

Steps to Reproduce

  1. Visit: https://aegis-ai-sigma-seven.vercel.app/register

  2. Enter valid registration details:

    • Email
    • Password
    • Full Name
    • Company Name
  3. Open Developer Tools (F12).

  4. Click Create Account.

  5. Check the Console or Network tab.

Expected Behavior

  • The registration request should be processed successfully.
  • A new user account should be created.
  • The user should be redirected to the login page or dashboard.

Actual Behavior

  • Registration fails.

  • The UI displays:

    Registration failed. Please try again.

  • The POST request to "" returns 404 Not Found.

Evidence

Browser Console:

Failed to load resource: the server responded with a status of 404 ()
api/v1/auth/register

Possible Cause

  • Missing backend route in the deployed environment.
  • Incorrect API base URL configuration.
  • Vercel deployment or routing misconfiguration.
  • Frontend pointing to a non-existent endpoint.

Impact

High severity.

New users are completely unable to register and access the platform.

Screenshot

Attached is the browser console screenshot showing the 404 response for /api/v1/auth/register "

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions