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: 
_AnonymousUser
Specialist III
Specialist III

tFileFetch for a http method get

Hi: I am having some issues calling tFielFetch to downlaod a file from http get method. The URI for the file is " http://clinicaltrials.gov/ct2/results/download?down_stds=all&down_typ=study&down_flds=shown&down_fmt...". It works perfectly fine when I copy and paste the link in a web browser.
The error I am getting is java.io.FileNotFoundException with description where it appends the get query string in front of my destination directory path (Weird). Any pointers will be appreciated.
Regards,
Rashid.
Labels (3)
4 Replies
Anonymous
Not applicable

it seems to work fine for me.
but only when you change your timeout.
increase to something that will allow it to be downloaded successfully the bigger the file more time required.
and thanks for the website quite helpful for UK NHS.

good luck
_AnonymousUser
Specialist III
Specialist III
Author

I still couldn't able to run it. Here are the parameters I am using
protocol: http
uri: " http://clinicaltrials.gov/ct2/results/download?down_stds=all&down_typ=study&down_flds=shown&down_fmt..."
Destination directory: "C:"
Destination filenae: ""
unchecked post method check box.
I also bump up the time out parameter in advance setting but no luck.
Regards,
RJ.
Anonymous
Not applicable

i believe you will have to set the filename.
also try setting a different location for your file (eg: c:\talend\myFile.txt)
and keep the time out high.
for me it work fine with these parameters.
_AnonymousUser
Specialist III
Specialist III
Author

You are right, there is a bug in tFileFetch component and you can't leave the file name blank in case you call a resource with http get method with parameters. See my post at https://community.talend.com/t5/Design-and-Development/A-bug-in-tFilefetch-component/td-p/108339.
RJ.