Skip to content

fix: Incorrect error message when space is provided in 'connectionId' parameter #1229

@sayali-chavan2396

Description

@sayali-chavan2396

Description:
When a space is passed as the value for the connectionId parameter in the API request, the response returns an incorrect error message. The current message states "Invalid format for connectionId"

Method

POST/v1/orgs/{orgId}/basic-message/{connectionId} (Send basic message)

Steps to Reproduce

  1. Send an API request with a space in the connectionId param.
  2. Observe the response.

Current behavior

{
"statusCode": 400,
"message": "Invalid format for connectionId",
"error": "Bad Request"
}

Expected behavior

{
"statusCode": 400,
"message": "Please provide valid connectionId",
"error": "Bad Request"
}

Screenshot

Image

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions