Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Keep getting Infinite loop detected in the API

I have been trying to run a session today but it has been rough to say the least. Has anyone else had issues with a Infinite Loop coming up even mid session?
1586383952
The Aaron
Roll20 Production Team
API Scripter
What scripts are you using?  Infinite Loop detection is based on a watchdog timer.  The API sandbox records the time then makes a call into a script's event handler.  If some threshold of time passed (I believe it's 30s or a minute...), the Sandbox considers the script to be in an infinite loop.  It's likely that a script is doing too much in one of those handlers (they should use a deferral queue or similar), and the congestion on the API server is pushing their execution over that time limit.