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
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
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
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.
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
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
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
I tried your method and set it to 10 seconds (value 10000), but it doesn't work. FME hang indefinitely again.
Thanks
Now I cann't reproduce the problem, I'll try your method next time.