Skip to main content
Question

How to set a time limit for HTTPFetcher


endest
Contributor
Forum|alt.badge.img+1
Hi,

 

 

I send many features into HTTPFetcher, before that, I have used Decelerator to slow down the speed of request. But if one request couldn't get response, FME will wait it all the time.

 

 

How solve this? Thanks

 

8 replies

david_r
Evangelist
  • October 15, 2013
Hi,

 

 

one possible solution: After the HTTPFetcher, check the "Status code variable" and "Error attribute" values supplied by the HTTPFetcher.

 

 

If they indicate an error (timeout), use a VariableSetter to indicate an error. Before the HTTPFetcher, insert a VariableRetriever and a Tester to stop sending features to it if the error variable has been set.

 

 

David

endest
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • October 15, 2013
Thanks David,

 

 

If one feature cann't get the response, what ever how long it past, FME just keeps waiting. features remained won't be passed untill it get the result.

 

 

So what I need is just the timeout setting and let the workflow keeps going.

 


david_r
Evangelist
  • October 15, 2013
Hi,

 

 

I'm not quite sure I understand. Does the HTTPFetcher hang indefinitely when there is not response? It should stop with a timeout exception after some time.

 

 

On Windows, there is a system-wide timeout setting, usually between 30-60 seconds, which I believe FME uses. Take a look at the Microsoft Knowledge Base article here to locate and modify this setting.

 

 

David

endest
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • October 15, 2013
Hi,

 

 

Yes,  but just one time I waited for 20 minutes and FME keeps hanging, beside that, not more than 1 minute.

 

I wish I can set it to 5 seconds.

 

 

Thank you

 


david_r
Evangelist
  • October 15, 2013
Hi,

 

 

look again at the article I linked to. I shows you how to find your current timeout value, as well as how to modify it.

 

 

David

endest
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • October 17, 2013
Hi,

 

 

I tried your method and set it to 10 seconds (value 10000), but it doesn't work. FME hang indefinitely again.

 

 

Thanks

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • August 4, 2014
I check the option Follow Redirects and it works !

endest
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • August 5, 2014
Thanks JulienM,

 

 

Now I cann't reproduce the problem, I'll try your method next time.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings