Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Lrmr
Contributor
Contributor

POST JSON with REST API

Invalid JSON body.|400

[statistics] disconnected

 

Have attached the setup of the job.

Can someone please advise or help me out?

 

Thank you in advance

Labels (3)
4 Replies
David_Beaty
Specialist
Specialist

Hi,

 

I'd say the Talend job was working just fine, whatever is receiving the tREST is complaining about what you're sending it.

 

Use something like the Talend Cloud API Tester or Postman to try sending it a message outside of the Talend job to see whats going on.

 

Thanks

 

David

gjeremy1617088143

Hi , use a component TWriteJsonField to set your json in your body and send it via a Rest component.

Send me Love and Kudos

 

Lrmr
Contributor
Contributor
Author

Thank you for your response, David. I have tested using Postman and it works ok but not with talend.

Lrmr
Contributor
Contributor
Author

Hi,

Thanks for your response. Could you please give me a bit more colour? if I use the tWriteJSONField component, do I still need the tFlowTolterate?