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

November 30 (3 years ago)

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.


November 30 (3 years ago)

+1 same issue here. API console is empty and Restart API doesn't work at all. No Script is working.

November 30 (3 years ago)
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.

November 30 (3 years ago)

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.

November 30 (3 years ago)

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.

November 30 (3 years ago)


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.




November 30 (3 years ago)

Edited November 30 (3 years ago)
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     TypeError: firebase.database is not a function
    <anonymous> https://app.roll20.net/campaigns/scripts/11945526:1910
    l https://app.roll20.net/assets/v2.js?1638286781:2
    c https://app.roll20.net/assets/v2.js?1638286781:2
    setTimeout handler*a/< https://app.roll20.net/assets/v2.js?1638286781:2
    u https://app.roll20.net/assets/v2.js?1638286781:2
    fireWith https://app.roll20.net/assets/v2.js?1638286781:2
    fire https://app.roll20.net/assets/v2.js?1638286781:2
    u https://app.roll20.net/assets/v2.js?1638286781:2
    fireWith https://app.roll20.net/assets/v2.js?1638286781:2
    ready https://app.roll20.net/assets/v2.js?1638286781:2
    _ https://app.roll20.net/assets/v2.js?1638286781:2
    EventListener.handleEvent* https://app.roll20.net/assets/v2.js?1638286781:2
    <anonymous> https://app.roll20.net/assets/v2.js?1638286781:2
    <anonymous> https://app.roll20.net/assets/v2.js?1638286781:2
Same for Firefox and Chrome.

"https://roll20-99941.firebaseio.com/" and game 11945526 
November 30 (3 years ago)

Edited November 30 (3 years ago)

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

November 30 (3 years ago)

Edited November 30 (3 years ago)

Ahh. I'm getting a very similar error.

Uncaught TypeError: firebase.database is not a function
    <anonymous> https://app.roll20.net/campaigns/scripts/8007084:3931
    l https://app.roll20.net/assets/v2.js?1638286781:2
    c https://app.roll20.net/assets/v2.js?1638286781:2
    setTimeout handler*a/< https://app.roll20.net/assets/v2.js?1638286781:2
    u https://app.roll20.net/assets/v2.js?1638286781:2
    fireWith https://app.roll20.net/assets/v2.js?1638286781:2
    fire https://app.roll20.net/assets/v2.js?1638286781:2
    u https://app.roll20.net/assets/v2.js?1638286781:2
    fireWith https://app.roll20.net/assets/v2.js?1638286781:2
    ready https://app.roll20.net/assets/v2.js?1638286781:2
    _ https://app.roll20.net/assets/v2.js?1638286781:2
    EventListener.handleEvent* https://app.roll20.net/assets/v2.js?1638286781:2
    <anonymous> https://app.roll20.net/assets/v2.js?1638286781:2
    <anonymous> https://app.roll20.net/assets/v2.js?1638286781:2
8007084:3931:22
November 30 (3 years ago)

Edited November 30 (3 years ago)

Same for game 5133992 which is on 'https://roll20-24.firebaseio.com/'

November 30 (3 years ago)

Uncaught TypeError: firebase.database is not a function

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     TypeError: firebase.database is not a function
    <anonymous> https://app.roll20.net/campaigns/scripts/11945526:1910
    l https://app.roll20.net/assets/v2.js?1638286781:2
    c https://app.roll20.net/assets/v2.js?1638286781:2
    setTimeout handler*a/< https://app.roll20.net/assets/v2.js?1638286781:2
    u https://app.roll20.net/assets/v2.js?1638286781:2
    fireWith https://app.roll20.net/assets/v2.js?1638286781:2
    fire https://app.roll20.net/assets/v2.js?1638286781:2
    u https://app.roll20.net/assets/v2.js?1638286781:2
    fireWith https://app.roll20.net/assets/v2.js?1638286781:2
    ready https://app.roll20.net/assets/v2.js?1638286781:2
    _ https://app.roll20.net/assets/v2.js?1638286781:2
    EventListener.handleEvent* https://app.roll20.net/assets/v2.js?1638286781:2
    <anonymous> https://app.roll20.net/assets/v2.js?1638286781:2
    <anonymous> https://app.roll20.net/assets/v2.js?1638286781:2
Same for Firefox and Chrome.

"https://roll20-99941.firebaseio.com/" and game 11945526 



November 30 (3 years ago)

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
    at HTMLDocument.<anonymous> (10421600:4984)
    at l (v2.js?1638286781:2)
    at c (v2.js?1638286781:2)
DevTools failed to load source map: Could not load content for https://app.roll20.net/assets/bootstrap.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://app.roll20.net/js/firebase-app.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
November 30 (3 years ago)

Edited November 30 (3 years ago)

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 https://app.roll20.net/campaigns/details/<gamenumber>, where <gamenumber> 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.

November 30 (3 years ago)
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.
November 30 (3 years ago)
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.

November 30 (3 years ago)

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.

November 30 (3 years ago)


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.


November 30 (3 years ago)


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.

November 30 (3 years ago)

Edited November 30 (3 years ago)

I have logged this issue as service ticket #73885.

November 30 (3 years ago)

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

November 30 (3 years ago)

Edward R. said:

I have logged this issue as service ticked #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.

November 30 (3 years ago)

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.

November 30 (3 years ago)
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.  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. 

Black console, "RESTART API SANDBOX" appears to have no effect.

November 30 (3 years ago)
Katie Mae🔮
Roll20 Team

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. (: 

November 30 (3 years ago)


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. (: 


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.

November 30 (3 years ago)
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!

November 30 (3 years ago)

Well done! It seems everything is alright now for me. Ty

November 30 (3 years ago)

It seems to work if you Restart your Sandbox too.

November 30 (3 years ago)


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. 

November 30 (3 years ago)
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.

December 01 (3 years ago)
The problem with the api sandbox page persists through the bogus official suggestion on how to fix it.  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.  I hope someone has stayed behind at roll20 to fix yet another bogus patch day fiasco.  
December 01 (3 years ago)


DM Eddie said:

The problem with the api sandbox page persists through the bogus official suggestion on how to fix it.  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.  I hope someone has stayed behind at roll20 to fix yet another bogus patch day fiasco.  


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

December 01 (3 years ago)


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. 



December 01 (3 years ago)


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.

December 01 (3 years ago)

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

December 01 (3 years ago)

Same issues.  Tried multiple machines.  Problem is not fixed.

December 01 (3 years ago)

Having the same issue :(

December 01 (3 years ago)
Can't play. Awesome. Sandbox won't restart.
December 01 (3 years ago)


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.  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 https://app.roll20.net/forum/permalink/10527611/ 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.

December 01 (3 years ago)

Edited December 01 (3 years ago)
Ivo
Pro

Same here, tried all the usual fixes, time to put out some fires!

December 01 (3 years ago)

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.

December 01 (3 years ago)

Same issue here. API scripts will run, but no output to the console. "firebase.database is not a function" error in the Chrome console. 

December 01 (3 years ago)

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.

December 01 (3 years ago)
Newo
Pro

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. 

December 01 (3 years ago)

Same issue here with a blank API Output Console -  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!

December 01 (3 years ago)

Edited December 01 (3 years ago)
Richard @ Damery
Pro
API Scripter

My APIs are running, and the Game responds to the API commands issued, but the console is dead.  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.  Hope this gets fixed soon!

(I also hope it was not my release that broke it!)

December 01 (3 years ago)

Hello, I have the same problem.

December 01 (3 years ago)

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.