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
- Open the Sign Up page.
- Select Register with Email.
- Enter a valid-looking full name.
- Enter an email address.
- Enter a valid password satisfying the displayed password requirements.
- Confirm the password.
- Accept the Terms of Service and Privacy Policy.
- Click Create Account.
- 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
GitHub Username (If applicable)
@aayan-rashid
Environment
Chrome
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
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
GitHub Username (If applicable)
@aayan-rashid
Environment
Chrome