Skip to content

API Throws Internal Server Error When Password Key is Missing During Signup #13

@msrajawat298

Description

@msrajawat298

Endpoint : {{url}}/api/auth/signup
Entered data :

{
    "username": "user",
    "email": "user@test.com"
}

Issue Description:
When attempting to sign up using the API, if the password key is missing from the request, the API throws an internal server error instead of providing a meaningful error message. This behavior is not user-friendly and can lead to confusion for developers integrating with the API.

Steps to Reproduce:

Make a POST request to the signup API endpoint.
Omit the password key from the request body.
Send the request.
Expected Behavior:
The API should return a clear and informative error message indicating that the password key is missing from the request.

Actual Behavior:
The API returns an internal server error without any helpful information, as shown in the provided HTML response.

Additional Information:

Endpoint affected: [Insert API endpoint URL]
Request method: POST
Request body: [Include sample request body if necessary]
Response received: [Include any relevant response details]
This issue impacts the user experience and the ability of developers to effectively integrate with the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions