One Star

Sending JSON payload in an HTTP request using tRestClient and tJsonFil

Hi, I am having trouble using tRestClient for sending JSON files to a server. I have tried using tRest for the purpose and it worked fine. here is the Json file that i put in tRest body, and got the desired response from the server. 
"{\"listings\":}"
however if I have the same data in a Json file and try to import it and use its content as a payload, I am encountering errors of http 500 bad request. Some trestclient is not passing the data in the format that the server expects.
Find below a screenshot of the job design that I am using

Basic setting of tJsonFileInput
 
Basic setting of tMap

Basic and advanced setting of tRestClient
1 REPLY
Moderator

Re: Sending JSON payload in an HTTP request using tRestClient and tJsonFil

Hi,
500 error indicates the server encountered an unexpected condition which prevented it from fulfilling the request.
Could you please show us the full stack trace  on console?
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.