Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 :
When I'm using the componend, here is my result :
Here is below the component parameters :
Hi,
I found a way to solve my differents issues :
Hope it will be helpfull for the community and thks a lot for your help !
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
Hi DVSCHWAB,
Thks a lot for your answer. I did the modification and the error is different now :
Do you have an idea ?
Parameters :
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
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.
Hi,
I found a way to solve my differents issues :
Hope it will be helpfull for the community and thks a lot for your help !