-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Description:
When a space is provided before an invalid OrgID during the 'Retrieve the details of the webhook URL for an organization' API call, the response returns a 500 Internal Server Error. The expected behavior is that the space should be automatically trimmed, and a 400 Bad Request response should be returned
Method
GET/v1/webhooks/orgs/webhookurl (Get Webhook URL Details)
Steps to Reproduce
- Make an API call to the 'Retrieve the details of the webhook URL for an organization' endpoint, passing an 'orgId' parameter that includes a space before the invalid OrgID
- Observe the response.
Current behavior
{
"statusCode": 500,
"message": "Something went wrong!",
"error": "Internal Server error"
}
Expected behavior
The space in the OrgID should be automatically trimmed, and if the OrgID is invalid, a Bad Request error with a 400 status code should be returned
{
"statusCode": 400,
"message": "Please provide valid orgId",
"error": "Bad Request"
}
Screenshot
Metadata
Metadata
Assignees
Labels
Type
Projects
Status