Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tRESTClient get error "The method path(Object) in the type WebClient is not applicable for arguements ()"

I need to read data from a csv file and then call an API to update information 

I follow the guide : https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/mswIFzJ3F96ojxbEq9St~A

..with some customization to adapt my case (I change to use jSon instead for XML as in guide)

But when I run, the error like below captured image, someone please help

Thanks

0683p000009M8Io.png

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I found it now, the URL got the '?' which generated when I do manually. I just remove it and it work

View solution in original post

5 Replies
yome1
Creator
Creator

Hi,

 

You can find the error by seeing the code Tab. You will see the compilation error in the java code.

 

Guillaume

Anonymous
Not applicable
Author

I found it now, the URL got the '?' which generated when I do manually. I just remove it and it work
rohsuh
Contributor II
Contributor II

Hi,

I am working on TOS v6.3. I am using tRESTClient with method DELETE. I've set up the URL using context variables. But I keep running into the error mentioned below. The code view says its in the following line. Removing the "?" from the URL has not resolved the issue.

 

// set request path
webClient_tRESTClient_1.path();

I am setting the URL in the following manner and passing the context variable into the tRESTClient component in order to perform the DELETE

 context.l_URL = context.Endpoint + "/" + context.ID + "?";

Error is

Detail Message: The method path(Object) in the type WebClient is not applicable for the arguments ()

 

Can you please point me what I might be doing wrong here?

 

Thanks very much

 

Talend_AA
Contributor
Contributor

I have the same problem but with an API that contains "v2/api/dataReports/data/:dataReportId" the value:dataReportId causes the error message: The method path(Object) in the type WebClient is not applicable for the arguments().

Anyone have a solution?

Xiaodi_Shi
Employee
Employee

Hello,

Could you please give us a little bit information about your job in talend? What does your API call look like?

Are you using Klaviyo API? It seems that the v1/v2 legacy APIs are set to be discontinued on June 30, 2024.

https://developers.klaviyo.com/en/docs/migration_faq_v1v2_api_retirement#:~:text=v1/v2%20legacy%20AP...

Best regards

Sabrina