Six Stars

tRESTResponse not responding JSON body

step1.pngWhen I call this jobs REST Request via Postman it fires and prints out the expected JSON in the console shown. It also shows that the tLogRow component is passing that same data along to the tRESTResponse.step3.pngThe response body is always empty.step2.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: tRESTResponse not responding JSON body

Select 'String' in the Return body type on tRestResponse, and the output column should be named as 'body' on tWriteJsonFields. Let me know if it works. Regards Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
2 REPLIES
Community Manager

Re: tRESTResponse not responding JSON body

Select 'String' in the Return body type on tRestResponse, and the output column should be named as 'body' on tWriteJsonFields. Let me know if it works. Regards Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Six Stars

Re: tRESTResponse not responding JSON body

For whatever reason renaming the tWriteJSONField component output to "body" did the trick. (I don't understand why at all). FYI left the tRESTResponse type as Document.

 

Thanks!