Skip to content

bug: Sign-up fails with "Unexpected token '<'" JSON parsing error #8993

Description

@aayan-rashid

Description

The Sign Up form fails when creating an account. After entering the required registration details and clicking Create Account, the request fails with the following error:

Unexpected token '<', "<!DOCTYPE "... is not valid JSON

The error indicates that the frontend expected a JSON response but received HTML instead. The exact cause is currently unclear and may require investigation of the API endpoint, server response, or deployment configuration.

Steps to Reproduce

  1. Open the Sign Up page.
  2. Select Register with Email.
  3. Enter a valid-looking full name.
  4. Enter an email address.
  5. Enter a valid password satisfying the displayed password requirements.
  6. Confirm the password.
  7. Accept the Terms of Service and Privacy Policy.
  8. Click Create Account.
  9. Observe the error.

Expected Behavior

The account should be created successfully when all required information is valid.

If account creation fails for a backend or configuration reason, the user should receive a clear, user-friendly error message rather than a raw JSON parsing error.

Screenshots / Logs

Image

GitHub Username (If applicable)

@aayan-rashid

Environment

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions