Skip to content

[Bug] Signup/Login requests fail due to undefined API base URL #244

@Kannu20

Description

@Kannu20

Bug Description

The signup and login flow fails because API requests are being sent to an invalid URL:

undefined/api/auth/signup

This results in 404 errors and prevents account creation/login.


Steps To Reproduce

  1. Open the signup page
  2. Enter valid credentials
  3. Click "Create Account"
  4. Observe failure message
  5. Check browser console

Actual Behavior

Requests are sent to:

undefined/api/auth/signup

and fail with 404.


Expected Behavior

Requests should use a valid API base URL and successfully reach the authentication endpoint.


Console Evidence

Failed to load resource: the server responded with a status of 404
undefined/api/auth/signup

Possible Cause

The frontend API base URL environment variable may be undefined or missing a fallback value during deployment.

Potential areas to inspect:

  • API URL environment configuration
  • Auth request utility
  • Deployment environment variables

Screenshots

(attach console screenshot)

Metadata

Metadata

Assignees

Labels

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