Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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?
Labels (4)
1 Reply
Anonymous
Not applicable
Author

Hi,
We have replied to your another topic: https://community.talend.com/t5/Design-and-Development/tRestClient-returns-BadRequestException/td-p/...
Please stick to one topic so that we can pay individule attention to it.
Best regards
Sabrina