In Siebel 22.x, Siebel REST Calls With Empty Body Failing With ERROR “A JSONObject text must begin with ‘{‘ at character 0 of"
(Doc ID 2856281.1)
Last updated on JANUARY 01, 2024
Applies to:
Siebel CRM - Version 22.1 and laterInformation in this document applies to any platform.
Symptoms
After upgrading 22.1 or higher, REST calls to a service that does not have any input parameters or body returned a JSON error:
{
“ERROR”: “A JSONObject text must begin with ‘{‘ at character 0 of “
}
The issue can be reproduced at will by making an inbound REST call to invoke a business service for which the user does not have any input parameters or body.
For Ex: REST command was executed from Postman Tool as below:
Without body:
POST https:/xxxxxxxx:8011/siebel/v1.0/service/RESTSpanishChars/DummyMethod?DummyStringArgument=Hello
content-type: application/json
Authorization: XXXXX
Response:
HTTP 500
{
"ERROR": "A JSONObject text must begin with '{' at character 0 of "
}
POST https:/xxxxxxxx:8011/siebel/v1.0/service/RESTSpanishChars/DummyMethod?DummyStringArgument=Hello
content-type: application/json
Authorization: XXXXX
Response:
HTTP 500
{
"ERROR": "A JSONObject text must begin with '{' at character 0 of "
}
Changes
Apply Patch or update to 22.1 or higher.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |