-
Notifications
You must be signed in to change notification settings - Fork 50
Description
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
@devayanm please assign this issue to me. I can work on fixing the signup response handling.