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

Multiple AP! errors Please help

I'm not sure why but starting last week my API Sandbox keeps crashing with the below errors. I've tried disabling the scripts I use one at a time and restarting the sand box. This only works for a little while then the sand box crashes again with the same errors. I'm using chrome with the scripts, Token Mod, Roll20 audio Master, Ammo, and SpawnDefault token. I'm at wits end with this!
It looks like Roll20 Audio Master is the culprit, based on the 'at playTrack' portion of the error message. 
1615178387
Victor B.
Pro
Sheet Author
API Scripter
That looks like Roll20AM.&nbsp; I had an issue posting to Roll20 Github last week.&nbsp; It was rejecting the JSON file for unknown reasons.&nbsp; Strange stuff.&nbsp; Maybe what's being downloaded isn't good.&nbsp; Lets start with this.&nbsp; Remove the one click completely and go here and add a new script&nbsp; <a href="https://github.com/vicberg/Roll20-Audio-Master-V2.0" rel="nofollow">https://github.com/vicberg/Roll20-Audio-Master-V2.0</a>
pardon my ignorance but how do I add the new script?
Delete the current Roll20AM script you have on the API page.&nbsp; Open up the link that Victor posted, and click on the 'Roll20AM.js' link, which will bring up the script, which you can cut-and-paste (if you click on the 'Raw' button first you'll get a page of just the script text). To cut-and-paste the script, on the Roll20 API page, click on 'New Script' then paste then entire text of the Roll20AM script into the black field, give it a name ('Roll20AM'), then click on the blue 'Save Script' button.
So it happened again.....&nbsp; I heard from another individual that and I quote&nbsp; "Spawndefault token conflicted with several of my api ... I got rid of it and had to restore to a previous copy of my campaign before it got corrupted. Ever since then, i test all my api on a copy of my campaigns. I loved spawn token for instant platoons and warbands, but conflicted with token mod, group check and others." I had Spawndefault token deleted by that point. I have a saved copy but im not sure if the copy saves the api data as well.. If it does not could I make a copy of my current game the old one is several edits old and I don't want to have to do all that work if I don't have to.&nbsp; Alternatively is there a way to revert the API library to default settings?&nbsp;
1615472215

Edited 1615472693
David M.
Pro
API Scripter
Curious how !Spawn was conflicting with the other scripts? This is the first I've heard of it. The one-click version was broken for a week, but it's back up as of last Tuesday (though one revision behind the latest development gist). Manual installs have never had a problem. Spawn does not listen for or react to any api events besides chat messages, and ignores all messages except those that call it directly, so I'm not sure how a conflict could arise. Maybe if another script is responding to a graphic:change &nbsp;event which probably gets triggered when Spawn fires off a createObj. Even still, not sure what the problem would be. Pretty much everyone that uses it also uses token-mod (I mean, who doesn't have token-mod?). I don't use group-check, but it's popular enough that I'm sure others have it installed as well. Following... EDIT - I follow the forums pretty closely and also just googled for your quoted text, but can't find anything. If it was on another platform, feel free to have that person send me a PM and I can try to help out.
1615473501

Edited 1615473525
It was from another platform. I will advise him to reach out reach out thanks David.&nbsp; Per my issue, any insight? the error just happened last night and that is after I manually added Roll20AM per the steps above.
1615477882
David M.
Pro
API Scripter
Unfortunately, not really much insight on your particular issue. Is it the same error message, referencing the "playTrack" function (and therefore likely the Roll20AM script)? I have never used Roll20AM. Is it the same track that causes the problem, possibly a corrupted json string like Victor was suggesting? Seems like adding a try...catch somewhere in that function might help, with the goal of sending an error message via sendChat rather than crashing the sandbox. That would be&nbsp;something for the script author to evaluate and see if it made sense, though. If you could narrow it down to a specific track or sequence of events that would help them, as an intermittent problem is really hard to test possible solutions.
1615615820
Victor B.
Pro
Sheet Author
API Scripter
You have to import into Roll20AM.&nbsp; Command Import Tracks.&nbsp; Your tracks need to be in playlists.&nbsp; If you do this it works
Victor B what do you mean import into Roll20AM? you mean use the !roll20AM --config. Then Import Tracks? I have done that and im still getting the issue&nbsp;
1616466446

Edited 1616467738
Victor B.
Pro
Sheet Author
API Scripter
I don't see this error. Nor do most who use roll20am. Something isn't set right. Try remove tracks followed by import tracks. Make sure you are using menus to launch tracks first rather than commands. Your commands may not be right. Hold your mouse over the menu command (start, stop, play, etc) to get the command&nbsp;