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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How do I get/see the URL that tRESTClient is generating?

Hi All,

 

I have been doing data work for about 20 years now, but I am VERY new to Talend.

I have setup a tRESTClient for pulling data from Zendesk.

When I run the job it says it is getting a return code of 200 (which is good), but no results returned.

That doesn't make any sense because when I run the same query in Postman I get several hundred results.

So I am trying to troubleshoot this and I would like to know how I can see the URL that the tRESTClient is generating and using to make the API call.

Any idea where that is?

 

Thanks.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Your URL looks wrong......but that is not causing the compilation error. You have "external_id:none" instead of "external_id=none". A colon is used instead of an equals symbol.

 

Your compilation error is caused (I believe) by the "Relative Path" being empty. I know I said to remove it, but I meant to replace it with an empty String (""). This is what it will have in an unconfigured component. Sorry, that was my fault.

View solution in original post

12 Replies
Anonymous
Not applicable
Author

Can you post some specs from your job?

Anonymous
Not applicable
Author

Can you give us a screenshot of your job layout? Also, can you connect a tLogRow to your Response and Error output exiting your tRestClient? Try running with that. You should be some output.

Anonymous
Not applicable
Author

Hello rhall_2_0,

 

Thanks for the reply!

I have attached a screen shot showing my flow ~ it is VERY simple (I am a total n00b, remember?).

Please let me know what you think.

 

Thanks.


Screen Shot 2018-09-28 at 11.41.43 AM.png
Anonymous
Not applicable
Author

You are getting an XML response, but it is a response with no data. This suggests that maybe your input parameters may be incorrect (or different to those that get you results in your other tool). Can you show your tRESTClient config?

Anonymous
Not applicable
Author

Hi rhall_2_0,

 

I apologize for not replying sooner.  My boss had other plans for me on Friday.

Attached are the two screenshots with my config.

I unchecked the option to "Convert response to DOM document" and the output is now JSON instead of XML, but it still isn't finding any records.

 

Thanks.


Screen Shot 2018-10-01 at 10.24.07 AM.png
Screen Shot 2018-10-01 at 10.24.34 AM.png
Anonymous
Not applicable
Author

Can you put the whole path in the URL and forget about the relative path. I don't think you will need to use that unless you intend to use service locator.

 

Also, your external_id parameter is hardcoded to "none". Is this what you did in your other tool?

 

Was the URL in your other tool....

https://{subdomain}.zendesk.com/api/v2/users/search.json?eternal_id=none

If so, try just adding that URL into the URL field and forgetting about the query parameters section to start with.

Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

That is a compilation error. It means that you have filled in a component parameter incorrectly. Can you show the tRestClient_1 component config (this is where the error is). It may just be a String parameter not surrounded by quotes, so check that first.

Anonymous
Not applicable
Author

I think everything is quoted like it should be....


Screen Shot 2018-10-01 at 11.04.16 AM.png