Open() Time Out Error<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />I have a script that runs: text =Open(URL); and it works fine for the majority of all cases. The URL is a link to a python script that returns data in comma delineated text format. The problem I'm facing is every now and then the python script may take a while and the open() times out in JSL. I get the error:
"Unable to read data from URL:
Internet Error: 12002 (The operation timed out)"
When heading to the URL in a browser the data returns just fine. Is there anyway to manipulate the JSL timeout parameter?
Re: Open() Time Out ErrorWe got a similar 'Internet Error: 12002 (The operation timed out)' message trying to use a REST API... and we ended up having to modify the registry. We were getting timeouts after ~30 seconds.
We used some of these references in our troubleshooting.
We ended up modifying the registry (with JSL) to extend the timeout... see my post at Re: Calling RESTful Web Services from JMP
Regards, -Landon
Re: Open() Time Out ErrorI wrote a small PHP script to test this, but I'm not sure I'm testing the right thing. It delivers a small amount of data, once a second, without breaking the connection, forever. It ran 2500 seconds before I disconnected the ethernet to see the results:
open("http://ExampleNotReallyHere.com/forever.php")
"
10000000 10000001 10000002 10000003 10000004 ... 10002518 10002519
10002520 "
here's the PHP: