I can't send the JSON body with POST requests

OS: Ubuntu 24

POST to "http://localhost:3300/v1/jobcenter/create" with JSON body "{

"jobCenterID": "2",

"enJobCenterName": "qatar",

"arJobCenterName": "قطر"

}

the response is :"{

"errorType": "validationError",

"statusCode": 400,

"messages": [

"Path `enJobCenterName` is required.","Path `arJobCenterName` is required.","Path `jobCenterID` is required."

]

}"

which mean the request with out body , i tried Postman , httpie and the response is :"{

"success": false,

"message": "there is document with same jobCenterID '2'"

}

which mean the request pass the validation middleware .

Please authenticate to join the conversation.

Upvoters
Status

Closed

Board

Feedback

Tags

Bug

Date

Almost 2 years ago

Author

لورنس عثمان

Subscribe to post

Get notified by email when there are changes.