tRestClient returns BadRequestException

Highlighted
One Star

tRestClient returns BadRequestException

Here is what the log shows. The message sent to webservice:

ID: 1
Address: http://localhost:8081/api/users
Http-Method: POST
Content-Type: application/json
Headers: {Content-Type=, Accept=, Authorization=}

It passes the header information successfully. However I do not see the payload being sent to the webservice.  The webservice returned this error message:
ID: 1
Response-Code: 400
Encoding: UTF-8
Content-Type: application/json; charset=utf-8
Headers: {Access-Control-Allow-Headers=, Cache-Control=, Content-Length=, content-type=, Date=, ETag=, Expires=, Pragma=, Server=, Vary=, X-Powered-By=, X-SourceFiles=, X-UA-Compatible=}
Payload: {"status":"error","message":"wrong json format - must br as array"}

This is how I have linked the objects:
tfileinputdelimited->twritejsonfield->trestclient->tlog.
In the Input Schema of the trestclient, I have mapped the output from twritejsonfield to one column output. 
Is this how a payload is passed from a previous component to trestclient?
Moderator

Re: tRestClient returns BadRequestException

Hi,
We have replied to your another topic:https://www.talendforge.org/forum/viewtopic.php?id=48668
Please stick to one topic so that we can pay individule attention to it.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.