Jump to content
Server Maintenance This Week. ×

"The Request Timed Out"


jn08

This topic is 4094 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm using the web viewer to scrape data from a website on a daily basis. The script loops through my records and loads the web page. I use a loop script like the below to make sure the page has loaded before scraping data.

 

 

Loop

Pause/Resume Script [ Duration (seconds): 1 ]
Set Variable [ $html; Value:GetLayoutObjectAttribute("source";"content") ]
Exit Loop If [ PatternCount($html; "<head>") ]

End Loop

 

The problem is that occasionally the web viewer returns a "the request timed out" error in the status bar and this causes the script to just loop infinitely and not complete. If I come across this error and manually load the page again it continues with issues. Is there any way I can pull this error into the script somehow to avoid having to manually check it?

Link to comment
Share on other sites

This topic is 4094 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.