After a few months of abstinence from the imp I tried my luck on an agent based app today. I must be doing something wrong, because my agent doesn’t do what I expect it to do. Here is my agent code simplified all the way until almost nothing is left:
It’s working now. Was this some glitch, or is this systematic? Do I need to wait a certain amount of time of agents to go live? I also had trouble blinking up my imp at the same time, could that be related?
There was a glitch with newly created agents yesterday (it affected a small percentage of running agents), which was fixed - one of the reasons agents are still in beta
I apologize for raising an old thread but I’m having this same issue on a new agent: 231596b4cc1702ee
Occasionally requests get through but mostly timeout out after 2 minutes with “Empty reply from server”. Other agents I’ve tested with are working properly.
From what I can see, your agent is burning a lot of CPU time (appears to be in an infinite loop). If this is the case, then it won’t be able to accept HTTP requests as it has to idle to fire event handlers.
Ah, I see! Thanks!
I found the while loop code from the forum not realizing the side-effect. Is there a preferred agent-based equivalent to setInterval?