tFileFetch for a http method get

One Star

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.

Re: tFileFetch for a http method get

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
One Star

Re: tFileFetch for a http method get

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.

Re: tFileFetch for a http method get

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.
One Star

Re: tFileFetch for a http method get

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 http://www.talendforge.org/forum/viewtopic.php?id=8398.
RJ.