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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
0683p000009MENz.png
Basic setting of tJsonFileInput
  0683p000009MEKI.png
Basic setting of tMap
0683p000009MEPV.png
Basic and advanced setting of tRestClient
0683p000009MEDI.png 0683p000009MEPa.png
Labels (4)
2 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

hey thanks for posting this article i got help with this post, from last two days i was trying, finally i gotit.