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

Issue with Phantom Duplicate Calls to the API

Something strange is happening to me... it only started a couple weeks ago.


My campaign is making duplicate calls to the API stretched over the course of many hours.


Here is an example:


Yesterday, I DMed a campaign, and combat occurred from 4 - 5 PM. During that time, one of my players unleashed a Fireball on my baddies. After the session, I left my Roll20 Tab open, as I often do, and 7 hours later, a phantom duplicate API call was made.

 

Then, over the course of several hours after that, duplicate calls for Ammunition Tracking were made replicating attacks my players made during combat.



Anyone have any idea what's going on? This started happening around the time I transitioned my legacy game to Jumpgate. Only mod I've installed since then is Wildshape.


If people are at a loss for ideas, I might try uninstalling Wildshape. If that doesn't help, maybe I'll just try refreshing the API after every single use of Roll20, but as you can see, it is a problem. It's actually deducting arrows from my players character sheets and alterting things in game when I don't want it to.


This is not an isolated incident. As I mentioned, it's been happening for weeks, and seems to affect every other Mod I've installed. I've seen it make phantom calls to ChatSetAttr, Teleport, etc.

Can now also confirm that restarting the API sandbox does not resolve the issue. I just did so, and it made a new phantom duplicate call.

Sorry, for having a conversation with myself... but a thought occurred to me. This might be crazy and illogical... but is it possible that, since I save a copy of my original legacy campaign... the API commands are running twice because it is retrieving the calls from two places?


I'm no coder, so no idea if that doesn't make sense. I am going to try disabling all the scripts in my legacy campaign to see if that has any effect.


My guess is that it will not fix the issue, but figured I'd troubleshoot in case others ever have the same problem.

March 10 (3 weeks ago)
The Aaron
Roll20 Production Team
API Scripter

I think this is related to an update I made a few weeks ago to fix the API missing messages when many of them come in as part of a single chat block.  I believe I know what the issue is and will try and get it fixed shortly.

Bless you and the work you do for this community!

March 11 (3 weeks ago)
The Aaron
Roll20 Production Team
API Scripter

Ok, I've just deployed a new Mod API Server that should correct this issue.  You should see today's date in the console log:

"##########> Sandbox [DEFAULT 2025-03-11] : Ready fired after 6.78s, 100 objects."

Paul - curious what mod is the one with "Longbow +1" and all those heart/shield button?

March 11 (3 weeks ago)

Edited March 13 (2 weeks ago)


The Aaron said:

Ok, I've just deployed a new Mod API Server that should correct this issue.  You should see today's date in the console log:

"##########> Sandbox [DEFAULT 2025-03-11] : Ready fired after 6.78s, 100 objects."


Oh my God, thank you! I can confirm as of now that I left my Roll20 tab open all night and didn't seem to have any phantom duplicate rolls and that the API has been running all night (no crashes). Will report back in the next couple of weeks if there are any further issues!



Novercalis said:

Paul - curious what mod is the one with "Longbow +1" and all those heart/shield button?

Nick Olivio showcased a wonderful script called AutoButton that I yanked from one of his videos. You can find it here: https://www.youtube.com/watch?v=PAbL1Ft2i78&ab_channel=NickOlivo





March 11 (3 weeks ago)


Novercalis said:

Paul - curious what mod is the one with "Longbow +1" and all those heart/shield button?

That is the AutoButtons script