Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

TRESTClient issue

Hi,

 

I'm trying to use the componenet TRESTClient to consume an API's provider but I'm facing issues...

Thks for your help !

 

Here is below the web service uri :

0683p000009M0uY.png

When I'm using the componend, here is my result :

0683p000009M136.png

 

Here is below the component parameters :

0683p000009M1Kz.png0683p000009M1JX.png0683p000009M15w.png

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

I found a way to solve my differents issues :

  1. In the parameters settings, i replace the { by %7B and } by %7d
  2. Delete the "?" of my URI in the relativ path
  3. I used the proxy settings of my company

 

Hope it will be helpfull for the community and thks a lot for your help !

 

 

View solution in original post

5 Replies
Anonymous
Not applicable
Author

I think you need to set the query parameters (i.e. the "Parametres de la requite"). They are missing in your job, but present in the Talend documentation for tRESTClient.

 

https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/~V42EBQClKxKQghNvzHF1g

 

Hope this helps,

 

David

 

Anonymous
Not applicable
Author

Hi DVSCHWAB,

 

Thks a lot for your answer. I did the modification and the error is different now :

Do you have an idea ?

0683p000009M1Tb.png

Parameters :

0683p000009M1Tg.png

Anonymous
Not applicable
Author

I replaced the { and } in the parameters fields and it seems to be better.

Now I have other exception. I think the special characters in my URI have been coded :

? replaced by %3F

{ replaced by %5C%7B

} replaced by %5C%7D

 

0683p000009M0eH.png

Anonymous
Not applicable
Author

That is part of URL encoding; it is standard practice, and shouldn't cause an error:

 

https://en.wikipedia.org/wiki/Percent-encoding

 

You're getting an "unknown host" exception, so the component can't resolve your hostname. Try pinging the hostname to make sure your workstation can reach it; you might also try using the IP address instead of the hostname and see if that fixes the error.

Anonymous
Not applicable
Author

Hi,

I found a way to solve my differents issues :

  1. In the parameters settings, i replace the { by %7B and } by %7d
  2. Delete the "?" of my URI in the relativ path
  3. I used the proxy settings of my company

 

Hope it will be helpfull for the community and thks a lot for your help !