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

API Not Working

As title states, API scripts are completely non-functional for me as of this writing. I have no pink "warning" boxes in the API Scripts page for my game. My API Output Console shows no text at all, other than the number 1, which I recognize as a line number at the head of a blank line. Restart API Sandbox does not appear to have any function. I've tried logging in through both Firefox and Chrome, including in private/incognito, with all browser extensions disabled. No joy. I'm currently running Walls, Terrain Generator, UniversalVTTImporter, Vector Math, MatrixMath, Path Math, HTML Builder, Path Splitter, DLEllipseDrawer, TokenMod, ChatSetAttr, SpawnDefaultToken, ScriptCards, RecursiveTable, and AlterBars.
+1 same issue here. API console is empty and Restart API doesn't work at all. No Script is working.
1638293820
Kraynic
Pro
Sheet Author
I wonder if this is some sort of regional issue, or specific to certain server shards.  I just logged into one of my games to test and the api seems to be working fine for me.
Kraynic said: I wonder if this is some sort of regional issue, or specific to certain server shards.  I just logged into one of my games to test and the api seems to be working fine for me. I'm playing from Italy.
I haven't the foggiest. It seems very tightly constrained to the API, whatever it is; non-API macros, the dice roller, etc. all work just fine. But if I use an API command, nothing happens, and I'm not getting any feedback from the chat panel or the API Output Console.
Valerio I. said: Kraynic said: I wonder if this is some sort of regional issue, or specific to certain server shards.  I just logged into one of my games to test and the api seems to be working fine for me. I'm playing from Italy. I'm playing from the south-central USA. So I guess that tells us it's not regional.
1638294174

Edited 1638294256
From the perspective of the game, the API is working. However, the API console does not work and in the F12 developer console the following error manifests: Uncaught&nbsp;&nbsp;&nbsp;&nbsp; TypeError: firebase.database is not a function &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/campaigns/scripts/11945526:1910" rel="nofollow">https://app.roll20.net/campaigns/scripts/11945526:1910</a> &nbsp; &nbsp; l <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; c <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; setTimeout handler*a/&lt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; u <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fireWith <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fire <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; u <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fireWith <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; ready <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; _ <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; EventListener.handleEvent* <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> Same for Firefox and Chrome. "<a href="https://roll20-99941.firebaseio.com/" rel="nofollow">https://roll20-99941.firebaseio.com/</a>" and game&nbsp;11945526&nbsp;
1638294206

Edited 1638294432
Edward R. said: I haven't the foggiest. It seems very tightly constrained to the API, whatever it is; non-API macros, the dice roller, etc. all work just fine. But if I use an API command, nothing happens, and I'm not getting any feedback from the chat panel or the API Output Console. Yep, definitely the same here. I'm running the following Scripts (and they've all worked together till now) Ammo; TokenMod; AddCustomTurn; Vector Math; MatrixMath; Path Math; Token Collisions; Character Sheet Utils; It's a Trap!; HTML Builder; It's a Trap! - Pathfinder theme; ChatSetAttr; MacroParam.js; Roll20 Audio Master; Change Map - Clone Tokens; GroupInitiative; Door Knocker
1638294358

Edited 1638297726
Ahh. I'm getting a very similar error. Uncaught TypeError: firebase.database is not a function &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/campaigns/scripts/8007084:3931" rel="nofollow">https://app.roll20.net/campaigns/scripts/8007084:3931</a> &nbsp; &nbsp; l <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; c <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; setTimeout handler*a/&lt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; u <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fireWith <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fire <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; u <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fireWith <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; ready <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; _ <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; EventListener.handleEvent* <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> 8007084:3931:22 <a href="https://roll20-99928.firebaseio.com/" rel="nofollow">https://roll20-99928.firebaseio.com/</a> &nbsp;and game 8007084
1638294428

Edited 1638294467
Same for game 5133992 which is on&nbsp;' <a href="https://roll20-24.firebaseio.com/" rel="nofollow">https://roll20-24.firebaseio.com/</a> '
Uncaught TypeError: firebase.database is not a function &nbsp;&nbsp;&nbsp;&nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/campaigns/scripts/10421600" rel="nofollow">https://app.roll20.net/campaigns/scripts/10421600</a> : 4984 &nbsp;&nbsp;&nbsp;&nbsp; l <a href="https://app.roll20.net/assets/v2.js?1638286781" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781</a> : 2 &nbsp;&nbsp;&nbsp;&nbsp; c <a href="https://app.roll20.net/assets/v2.js?1638286781" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781</a> : 2 10421600 :4984:22 Martijn S. said: From the perspective of the game, the API is working. However, the API console does not work and in the F12 developer console the following error manifests: Uncaught&nbsp;&nbsp;&nbsp;&nbsp; TypeError: firebase.database is not a function &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/campaigns/scripts/11945526:1910" rel="nofollow">https://app.roll20.net/campaigns/scripts/11945526:1910</a> &nbsp; &nbsp; l <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; c <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; setTimeout handler*a/&lt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; u <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fireWith <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fire <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; u <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; fireWith <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; ready <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; _ <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; EventListener.handleEvent* <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> &nbsp; &nbsp; &lt;anonymous&gt; <a href="https://app.roll20.net/assets/v2.js?1638286781:2" rel="nofollow">https://app.roll20.net/assets/v2.js?1638286781:2</a> Same for Firefox and Chrome. " <a href="https://roll20-99941.firebaseio.com/" rel="nofollow">https://roll20-99941.firebaseio.com/</a> " and game&nbsp;11945526&nbsp;
I've just noticed that in my other game where I run just 1 script (ChatSetAttr) there's the same issue and the same error appears in the F12 console. So it shouldn't be related to any particular script. That's what I get from Chrome. v2.js?1638286781:2 Uncaught TypeError: firebase.database is not a function &nbsp;&nbsp;&nbsp; at HTMLDocument.&lt;anonymous&gt; (10421600:4984) &nbsp;&nbsp;&nbsp; at l (v2.js?1638286781:2) &nbsp;&nbsp;&nbsp; at c (v2.js?1638286781:2) DevTools failed to load source map: Could not load content for <a href="https://app.roll20.net/assets/bootstrap.css.map" rel="nofollow">https://app.roll20.net/assets/bootstrap.css.map</a>: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for <a href="https://app.roll20.net/js/firebase-app.js.map" rel="nofollow">https://app.roll20.net/js/firebase-app.js.map</a>: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
1638296447

Edited 1638297010
You're correct; this isn't an issue with any particular script. It's a problem with Firebase, which is part of the backend infrastructure that connects the API sandbox to your actual game. You can kind of parse through these errors and see how that works: Your game has an unique ID (10421600; mine is 8007084). If you navigate to <a href="https://app.roll20.net/campaign/details/ ,&nbsp;where">https://app.roll20.net/campaigns/details/&lt;gamenumber&gt;,&nbsp;where &lt;gamenumber&gt; is this ID, it'll look pretty familiar to you. This same ID is used to identify your game for the purpose of linking it to the API. Currently, something about that arrangement is not as it should be. It's really unlikely that this is because of anything that you or I have done.
I have a similar issue, I have an old campaign for Star Wars FFG where the scripts for dice are still working, but I just copied the campaign to start new one, added the scripts, and nothing is working on the new one. I tried Disable or Restart Sandbox and nothing seems to happen. The weird thing is that my old one keeps running fine but its copies don't.
1638296594
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I had this problem a few weeks ago (blank console, but API working). I solved it by removing all cookies and deleting the cache. (More accurately, I re-set Chrome). PITN, but but it worked.
Without knowing what scripts you have running and how they're configured, that may or may not mean anything. Scripts don't copy over when you copy a game; you have to go in manually and install them, and once they're installed they (sometimes) have to be configured. If everything isn't identical, then your scripts might not be working for reasons unrelated to whatever is causing this bug. The best way to tell if you're affected by this bug is to go to the API Scripts pages for your campaigns, hit F12 to bring up the dev console, refresh the page, and look for an error message that looks like the ones other people have posted here.
keithcurtis said: I had this problem a few weeks ago (blank console, but API working). I solved it by removing all cookies and deleting the cache. (More accurately, I re-set Chrome). PITN, but but it worked. This bug is affecting me on multiple browsers. I don't think that your solution makes a ton of sense, given that.
Edward R. said: keithcurtis said: I had this problem a few weeks ago (blank console, but API working). I solved it by removing all cookies and deleting the cache. (More accurately, I re-set Chrome). PITN, but but it worked. This bug is affecting me on multiple browsers. I don't think that your solution makes a ton of sense, given that. I agree, same issue appears both on chrome and firefox for me. Moreover, I've already "re-set" chrome just before all this issue started as "Forbidden bug" was showing (it happens every now and then to me) and I usually solve it by resetting the browser cache and cookies, that is quite annoying too but...it is what it is.
1638298828

Edited 1638299493
I have logged this issue as service ticket #73885.
I have the same issue. Logged in to do some work and my API shows nothing. Some of the API scripts are not working either.
I also have no functioning api. Tried on two different pcs. Damn annoying
Edward R. said: I have logged this issue as service ticked&nbsp;#73885. I hope they'll take care of that soon as I have a scheduled game in 2 hours :D ;) Anyway thanks for that. If I can help giving more details, just ask.
We can take it as established that this is a backend issue on Roll20's part, unrelated to anything to do with the user agent. Something about how Roll20 is using Firebase for some games appears to be borked. There's a thread over in the API forum ( here ) that includes some users who can use API scripts in some games but not others.
1638299684
Gold
Forum Champion
My friend upgraded to PRO today, so I was teaching him how to install API from the One-Click. The joke is, "He broke it!" The issue is, same as reported above, his game's API console is all black and won't restart.&nbsp; So I said, "Hey i'll check MY games and see if it's the same", and it was the same in my game too.&nbsp; Black console, "RESTART API SANDBOX" appears to have no effect.
Hi all!! The team has been made aware of this and are working to fix the issue ASAP! More informed updates soon- just wanted to get the word out there. (:&nbsp;
Katie Mae said: Hi all!! The team has been made aware of this and are working to fix the issue ASAP! More informed updates soon- just wanted to get the word out there. (:&nbsp; Thanks! I'm sure there are quite a few people who're watching this issue with some consternation, so it's good to know that the dev team is aware and actively working it.
1638302669
Eve
Roll20 Team
Hey all! Thanks for your patience. The issues you've been reporting with API scripts should now be fixed. If you continue to experience issues please clear your cache and cookies and then try again!
Well done! It seems everything is alright now for me. Ty
It seems to work if you Restart your Sandbox too.
Eve said: Hey all! Thanks for your patience. The issues you've been reporting with API scripts should now be fixed. If you continue to experience issues please clear your cache and cookies and then try again! Hey Eve, sorry to keep this open but I've cleared cache and cookies, rebooted my laptop, prayed and offered sacrifice to the Machine Spirits but I'm still experiencing this issue.&nbsp;
1638315652
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Edward R. said: keithcurtis said: I had this problem a few weeks ago (blank console, but API working). I solved it by removing all cookies and deleting the cache. (More accurately, I re-set Chrome). PITN, but but it worked. This bug is affecting me on multiple browsers. I don't think that your solution makes a ton of sense, given that. It was worth suggesting, since the problem cookie (if that had been the case) could have been installed by an extension that is installed across multiple browsers. However, it doesn't look like this was the issue.
The problem with the api sandbox page persists through the bogus official suggestion on how to fix it.&nbsp; All it does is enable the restart button to work, we still cannot see if the api sandbox is crashed unless we install api heartbeat.&nbsp; I hope someone has stayed behind at roll20 to fix yet another bogus patch day fiasco.&nbsp;&nbsp;
DM Eddie said: The problem with the api sandbox page persists through the bogus official suggestion on how to fix it.&nbsp; All it does is enable the restart button to work, we still cannot see if the api sandbox is crashed unless we install api heartbeat.&nbsp; I hope someone has stayed behind at roll20 to fix yet another bogus patch day fiasco.&nbsp;&nbsp; I've also seen the problem persist. I haven't even seen the API be re-enabled despite clearing my cache and rebooting the computer multiple times
Eve said: Hey all! Thanks for your patience. The issues you've been reporting with API scripts should now be fixed. If you continue to experience issues please clear your cache and cookies and then try again! Still not working even after clearing cache, cookies, and restarting the computer.&nbsp;
Eve said: Hey all! Thanks for your patience. The issues you've been reporting with API scripts should now be fixed. If you continue to experience issues please clear your cache and cookies and then try again! It must have broken again instantly because it is not working for me still.
Also followed the steps, and my API's are still not working. Hopefully this matter can be resolved soon. n_n good luck Roll20 Team
Same issues.&nbsp; Tried multiple machines.&nbsp; Problem is not fixed.
Having the same issue :(
Can't play. Awesome. Sandbox won't restart.
Eve said: Hey all! Thanks for your patience. The issues you've been reporting with API scripts should now be fixed. If you continue to experience issues please clear your cache and cookies and then try again! This issue is not resolved .&nbsp; The API Output Console began to work as expected after your fix, but has since gone dark and is unresponsive. Upon examining the Web Developer console in Firefox, I once again find the same error messages I pasted into my original support request. See&nbsp; <a href="https://app.roll20.net/forum/permalink/10527611/" rel="nofollow">https://app.roll20.net/forum/permalink/10527611/</a> &nbsp;for those. I repeat, these errors are IDENTICAL to those that manifested prior to the fix. I'm now able to use API scripts that were installed prior to your fix, but I'm additionally able to report that installing new scripts is fruitless; they show as being installed on the API Scripts page, but are non-responsive when chat commands are issued. It's not clear to me whether the "Restart API Sandbox" button is in working order or not. And I'm not interested in crashing my sandbox on purpose to find out for sure.
1638336465

Edited 1638336563
Ivo
Pro
Same here, tried all the usual fixes, time to put out some fires!
I am still experiencing this issue, not being able to restart the sandbox, and will not load the API scrips that I have been using for over a year with no issue until now.
Same issue here. API scripts will run, but no output to the console. "firebase.database is not a function" error in the Chrome console.&nbsp;
Similar issues here. Black API Output Console; APIs not working. "Restart API Sandbox" button does nothing. Cleared cache and cookies, restarted Chrome, restarted computer--all to no avail.
Yeah, the majority of people I know and myself cannot use their api scripts at the moment. There's one person in my friend group who seems to have theirs working, but we have no idea how? I've tried clearing the cache and cookies on all my browsers and still no API's work, not even ones that aren't in the Roll20 Library.&nbsp;
Same issue here with a blank API Output Console - &nbsp;I've been dealing with another issue where the Scripts (5th Edition OGL Companion, Aura/Tint Health Colors and Combat Master) would work for a short time during the session, and then crap out unexpectedly. I reported this over a month ago, (November 24th 2021) and have received no help so far. Now the API Output Console is empty on ALL my games, not just the one I reported, and Restart API console has no effect. I have 3 weekly games that I cant run now... Please Help!
1638366723

Edited 1638366825
Richard @ Damery
Pro
API Scripter
My APIs are running, and the Game responds to the API commands issued, but the console is dead.&nbsp; This is a problem, as I am developing multiple APIs (just had one pushed yesterday) and without the console I'm getting nowhere and can't support the release I've just made.&nbsp; Hope this gets fixed soon! (I also hope it was not my release that broke it!)
Hello, I have the same problem.
I too am having this problem. I run multiple games and my API output console shows no text, and I cannot restart my API sandbox ON ANY OF MY GAMES. I have tried making copies of the game, deleting all API, and trying it again. but that left me with no change. I've tried making a completely new game to see if that did anything, and I am left with the same problem. the API sandbox is 100% not working for me at the moment.