how tRESTClient works for " error output section" when "die on error" is enabled on the component

Highlighted
Four Stars

how tRESTClient works for " error output section" when "die on error" is enabled on the component

Hi Team,

Can you please let me know how tRESTClient works for " error output section" when "die on error" is enabled on the component. Will timeout to endpoint url treated as run time error? Please find the screen shot attached.


Trestclient1.PNGTrestclient.PNG

Thanks,

Jain

Highlighted
Seven Stars

Re: how tRESTClient works for " error output section" when "die on error" is enabled on the component

Hi,

 

tRESTClient component feeds error output when your url exists and the service you are requesting sends a 500 / 404 ... error with an attached message (example : {"detail":"Not found"} )

Your ERROR Output will transmit the errorCode and errorMessage to your tjavaflex in your case.

 

The DieOnError checkbox just stops the job when a java error is thrown by the component itself, not the service called.

If the component has an error, it cannot send a message to the ERROROutput.

 

Regards

Pierre

Regards,
Pierre
Highlighted
Four Stars

Re: how tRESTClient works for " error output section" when "die on error" is enabled on the component

Thank you Pierre for your response.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog