Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I'm facing an issue that is related to the tRESTClient component.
HTTP Method - POST
Content Type - JSON
Accept Type - JSON
Includes multiple Query parameters which are needed to pass as input parameters to the current API call.
In the Advanced Settings of the tRESTClient I'm using three parameters as the headers as listed below.
Connection - "keep-alive"
Authorization - "access key type"+"Access token"
Content-Type - "application/json"
With this same set of configurations, API call works fine in the POSTMAN, but in TALEND it keeps sending an error message with a successful response.
Talend Output:
|200 |<?xml version="1.0" encoding="UTF-8"?>
<root><root><returnvalue>ControllerFailed</returnvalue><errorcode>Object reference not set to an instance of an object.</errorcode><RefID/></root></root>
POSTMAN output:
[
{
"returnvalue"
:"Success"
,
"errorcode"
:""
,
"RefID"
:"BAT000000107"
}
]
Please suggest me a solution to, if you guys have an idea about this error.
Appreciate your support.
Thanks,
Pasan.
Hi, Object reference not set to an instance of an object is surely due to a null value somewhere, ensure that you send the good JSON in the post method.