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

Connection Issue on Load (And API failure)

Every 2nd or 3rd time I launch a game in the past week I get this connection issue: It also makes the API shit the bed for lack of a better term: This has been happening since last week and is consistently saying I have a connection interruption and the API shuts down.
This just happened again I can recreate it with 100% success rate right now for some reason.
I can also make the API go do this: By doing the following: Open Character Sheet of an NPC Click on Edit to open separate window Click Duplicate 4 to 8 times in quick succession API goes haywire and shuts down due to possible infinite loop
Is nobody going to address this or what? I can 100% duplicate this: Simply by clicking "Duplicate" on a Character Sheet in rapid succession as few as 5 times.
1526047039
Ziechael
Forum Champion
Sheet Author
API Scripter
Worry not, this has indeed been escalated for a Dev's attention, apologies for the delay. It may help diagnose by listing the scripts installed on that game so knowledgable users can check for conflicts there prior to a Dev stepping in?
Hi Kastion, I have brought this up to the rest of the team for investigating. In the meantime, could you grab a console log doing the reproduction? Does this happen in only the one game, or if you create a new game and test with different scripts can you find the problem script?
Found out the through testing&nbsp;I cannot reproduce this by creating a fresh blank game, using the Pathfinder Community Sheet (That I use in production), and "Duplicate"'ing a character sheet over and over. I only tried briefly and the only script I had installed while testing was the Pathfinder Companion Script from the One-Click install. Here is a view of what scripts I am running in my game (Also I'd like to note my campaign has been growing rather large): Here is a pastebin of my API Console log from startup to shutdown: <a href="https://pastebin.com/2NcPL48t" rel="nofollow">https://pastebin.com/2NcPL48t</a>
The fact that you are unable to reproduce in a new game lends to the idea that this is due in large part to the size of your current game. The Pathfinder sheet you are using is the heaviest on the site in terms of attribute fields. So rapid duplication could be causing a race condition as well as the firebase connection issues you are seeing due to triggering events for thousands of attributes in very quick succession. My recommendations in this scenario would be to see where you can cut some bulk. Archiving does not necessarily remove the data as it still gets loaded in- so as a Pro subscriber I would highly encourage you to create a repository game that you can pull from when you need it. Aside from that, the race condition is going to be a huge stopper in attempts to rapid duplication, so I can only suggest taking it slower.
Thanks for getting back to me Drespar. I would back up and archive some stuff but for some reason since April 29th I've been doing nightly backups and when I went in one of the backups to test something the other day it was completely empty. I'm not the only one having this issue either - there are some posts about it in this section of the forum. I haven't tested backing up my game in about 3 days I'll take another run at it and see how it goes.