Looking for old forum posts and information? View the old forum archive here ยป
Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

A static copy of our previous forums website is available online for reference. Click here to access the forum archive.

Learn more about...

AspDotNetStorefront
DotFeed

Stuck waiting for timeout when web query remote source doesn't respond.

I have an xml-package that is using a web query to read in a feed of content from a remote source. I call it in the page default xml-package. I have a condition that checks if any xml exists and if doesn't it displays a message instead. I thought this would be sufficient to handle when the remote source is down but the problem I noticed the other day was when the remote server actaully was down the entire default page wouldn't load until, what Im guessing is the case, the request to the remote server timed out, which was very long. Is there a way to set a shorter timeout?  or maybe delay calling that particualr pacakage (with javascript or something?) until everthing else has loaded? I wonder if there is preferred way to do it?

Thanks.
asked Dec 30, 2016 in MultiStore by Mden (225 points)

1 Answer

+1 vote
the timeout parameter sets the timeout of a webquery in a xmlpackage. The defualt could be as long as 30 secounds in version 10 if left blank.
answered Jan 4 by mmcgeachy (3,310 points)

Thanks. that appears to do the trick.

<webquery name="WebData1" RetType="xml" timeout="2" >
	<url>http://www.fakeresponse.com/api/?sleep=10</url>
</webquery>

 

...