Skip to content

[BUG] #108

@VaibhavChougule236

Description

@VaibhavChougule236

Describe the bug
When attempting to sign up for a new account, the frontend displays the following error message:
Failed to execute 'json' on 'Response': Unexpected end of JSON input
This occurs because the signup API is returning either an empty response body or a non-JSON response, while the frontend always tries to parse it as JSON.

To Reproduce
Navigate to the Sign Up page.
Enter valid details (Name, Username, Email, Password).
Click on Create Account.
Observe the error in the UI.

Expected behavior
After successful signup, the backend should return a valid JSON response (e.g.,
{ "message": "Account created successfully" }
).
The frontend should display a success message or redirect the user accordingly.

Screenshots

Image

@devayanm please assign this issue to me. I can work on fixing the signup response handling.

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