livecode load URL theURL with message "myEvent" - asynchronous

I noticed that sometimes this code works, and sometimes my server doesn't see it
load URL theURL with message "myEvent"
if I start a fresh LC and run this code - it works fine, when I start debugging (other code) it stops reaching the server.
my guess is that if there's an ongoing async load - LiveCode wont allow a second one to run.
if this is the case - it seems the only solution for me is to restart LC - which is really time consuming.
any idea/workaround ?

Related

Nginx - execute command on error (5xx gateway errors)

I've seen the answers to nginx-how-to-run-a-shell-script-on-every-request, but my request is a bit different:
Whenever I have a problem with the back end (Mendix/Java specifically, but Python/django/plone also involved) which I'm proxying to, I would like to execute a script, but NOT return the results to the browser, ie. it is done asynchronously to the request, and perhaps issue a retry/reload/redirect page, but the important part for me is the script to be run whenever there is a gateway error.
The "need" is to either trigger a restart of the back-end, or issue an error/warning to the sysadmins.

getURL throws error; same URL works in browser. OR: How to cleanup after getURL()

summary:
## parameters_string is a vector, 3K long, of different parameter values to the API
U <- paste0("www.Somehost.com/api?", parameters_string)
getURL(U) eventually fails, after around 350 calls. Continues to work after restarting R
getURL(U, async=FALSE) Works without error. Other than it is of course very slow.
Details:
I am hitting an API, iterating over several thousand urls
The API has a counter indicating how many calls can still be made and I am beneath the limit.
The problem is that after some time, getURL() fails, throwing an "Could not resolve host: Somehost.com error.
I can access the url via any browser. Also, restarting R resolves the problem, as does setting the async=FALSE flag in getURL
I've tried closeAllConnections() but this did not help.
What is the best way to intermittently clean up whatever getURL() is leaving open so that it can be used with async=TRUE ?

Remote report: webexception the operation has timed out

I have a ReportViewer which loads a remote report fine on the test SharePoint server. I just tried to move it to the production (SharePoint) server, but i get a timeout there when i try to view the report.
The ReportViewer does load up fine on the production server. I also see the default "Loading" message that a ReportViewer always shows and all the input parameters of the report. But after some time (i think a minute or so) i get the error webexception the operation has timed out in the place where the report data normally appears.
I have no idea what the problem is. I tried to increase the report timeout, but that didn't seem to have any effect:
ReportViewer1.ServerReport.Timeout = 1800000;
I also copied the web.config of the Test server to the Production server. So there is no difference in there.
Is there anything else i can try...?

Error when running TcmReindex.exe

I am currently trying to get search working in my Tridion 2011 installation. I read in another article that I should run the TcmReIndex.exe tool in the Tridion/bin folder to re-index all my sites. So I tried this and it failed with a message box giving the following details
Unable to get list of Publication items.
Unable to Intialize TDSE object.
The wait operation timed out
Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=21054; handshake=35;
The wait operation timed out
A database error occurred while executing Stored Procedure "EDA_TRUSTEES_GETTRUSTEEETOKEN"
I have four fairly large publications (100 000+ items in total) which I am trying to index.
Any ideas?
Whenever I get "Unable to Intialize TDSE object." errors, I typically write a small test script using VBScript, and try running it on the CMS server. Whilst this does not directly solve the problem, it often gives some insight into the issue by logging information in the event viewer. Try creating a test.vbs file as follows and running it:
Set tdse = CreateObject("TDS.TDSE")
tdse.initialize()
msgbox(tdse.User.Description)
Set tdse = Nothing
If it throws any errors, please let me know, and it may help us solve the problem. If it gives you a popup with your user description, then I am completely barking up the wrong tree.
I haven't come to anything conclusive but it seems like my issue may have been a temporary one as it just started working. I did increase all timeouts in Tridion MMC > Timeout Settings by 100 times their amounts but I suspect that this wasn't the issue, when it works the connection is almost instant.
If anyone else has this issue
Restart the computer the content manager is installed on, try again.
Wait an hour or two, try again.
Increase timeouts, try again.
I've run the process a few more times and it seems to be working correctly.

WebDriver URL Timeout doesn't seem to be working

I have the following code in my test class (java) but the timeout doesn't seem to work (it has no effect at all). I've tested it with really slow connections and I expect it to fail after 5 secnods but it waits for page to load indefinately and sometimes it come back in 8-10 seconds and the test passes as the page has actually loaded but not within the time I specified. Any idea why page timeout command is not doing what it is supposed to do?
protected static WebDriver driver;
driver = new FirefoxDriver();
driver.manage().timeouts().pageLoadTimeout(5,TimeUnit.SECONDS);
driver.get("http://www.google.com");
I'm using Selenium 2.20.0.
Thanks in advance
Then report it as an issue
http://code.google.com/p/selenium/issues/list
pageLoadTimeOut makes no sense without "unstable" Firefox profile.
Probably, you will have to either download the plugin been mentioned at the selenium download page OR write a while loop that would run indefinitely and break only when the element is found. Make use of try-catch blocks as well.

Resources