Four Stars

Format of errorMessage of tRestClient

 

I call a webservice with a tRestClient component. When I have an error, I'd like to get the json structure of the error.

But the 'error' response is an errorCode, and errorMessage, and they are 'string'.

How to cast errorMessage to Document to have a tree on it?

 

Thanks,

 

1 REPLY
Community Manager

Re: Format of errorMessage of tRestClient

Hi
Not able to configure the component to return the error message with XML or json format, it could be reported as a new option. If you want to extract data from the error string, you can use tExtractRegularFields component after tRestClient.

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business