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 Doesn't Work

Not sure what's going on but I can't get API working on any of my campaigns today. 

Restarting sandbox due to script changes...
Previous shutdown complete, starting up...

And then nothing. I go into the game and none of the api macros scripts stuff work. Can't see anything working how it's supposed to. 

March 15 (4 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Are these new games, or games on which the API previously worked?

Games that have worked before

March 15 (4 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

I'd go through the guide to Solving Technical Issues, and hopefully a dev can sort it out from there (they will need the console log from step 4 in particular):

If none of the above succeeds, please thoroughly work through Step 4(Don't forget the complete Console Log!)

March 15 (4 years ago)

Edited March 15 (4 years ago)

Web Browser: Chrome and Opera (latest)

OS: Windows 10, freshly reformatted from the last disastrous update that broke explorer. 

Javascript: Enabled

Antivirus: Total AV

Extensions: Opera: none. Chrome: Adblock Plus, Chrome Currency Converter, Facebook Purity

Api Output Console:

Previous shutdown complete, starting up...
Restarting sandbox due to script changes...
Previous shutdown complete, starting up...

Chrome Console Log: 

app.roll20.net/:12 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'nonce-UJwhPAqgTpijVBCi' http://cdn.inspectlet.com https://*.googlesyndication.com https://*.doubleclick.net https://partner.googleadservices.com https://www.googletagservices.com https://ssl.google-analytics.com https://www.google-analytics.com https://ajax.googleapis.com http://ajax.googleapis.com https://d3clqjduf2gvxg.cloudfront.net https://cdn.firebase.com https://*.firebaseio.com https://*.tokbox.com https://*.opentok.com http://static.opentok.com http://www.google-analytics.com http://cdn.crowdin.com https://crowdin.com http://stun.l.google.com". Either the 'unsafe-inline' keyword, a hash ('sha256-uwsMnjFod2t1K+eR3mOkJlLsVtEBIkSgdwuYqZhVHZ0='), or a nonce ('nonce-...') is required to enable inline execution.
app.roll20.net/:13 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'nonce-UJwhPAqgTpijVBCi' http://cdn.inspectlet.com https://*.googlesyndication.com https://*.doubleclick.net https://partner.googleadservices.com https://www.googletagservices.com https://ssl.google-analytics.com https://www.google-analytics.com https://ajax.googleapis.com http://ajax.googleapis.com https://d3clqjduf2gvxg.cloudfront.net https://cdn.firebase.com https://*.firebaseio.com https://*.tokbox.com https://*.opentok.com http://static.opentok.com http://www.google-analytics.com http://cdn.crowdin.com https://crowdin.com http://stun.l.google.com". Either the 'unsafe-inline' keyword, a hash ('sha256-/XHNKTzdVLpPBcMgsOl9LN6PEC5ufZbaLdoU14BWKr0='), or a nonce ('nonce-...') is required to enable inline execution.
jquery.migrate.js:20 JQMIGRATE: Logging is active
app.roll20.net/:15 CAMPAIGN ID: 4406919
app.js?1582765320:541 70
app.js?1582765320:543 TOUCH SUPPORTED: false
app.js?1582765320:543 USING WEBGL ACCELERATION...
app.js?1582765320:543 WEBGL STARTUP SUCCESS
app.js?1582765320:545 Custom Sheet Translation
app.js?1582765320:560 Loading Custom character sheet.
tutorial_tips.js:7 tuts loaded
app.roll20.net/:1 [DOM] Found 2 elements with non-unique id #color_value: (More info: https://goo.gl/9p2vKq) <input type=​"text" size=​"8" id=​"color_value">​ <input type=​"text" size=​"8" id=​"color_value">​
app.js?1582765320:551 Final page load.
sheetsandboxworker.js?1584309549550:682 Starting up WEB WORKER
VM4:62 MULTIVERSAL- strength_mod_level: strength, level
VM4:62 MULTIVERSAL- constitution_mod_level: constitution, level
VM4:62 MULTIVERSAL- dexterity_mod_level: dexterity, level
VM4:62 MULTIVERSAL- intelligence_mod_level: intelligence, level
VM4:62 MULTIVERSAL- wisdom_mod_level: wisdom, level
VM4:62 MULTIVERSAL- charisma_mod_level: charisma, level
VM4:62 MULTIVERSAL- acrobatics_modifier: dexterity_mod_level, acrobatics-trained, acrobatics-pen, acrobatics-misc
VM4:62 MULTIVERSAL- arcana_modifier: intelligence_mod_level, arcana-trained, arcana-pen, arcana-misc
VM4:62 MULTIVERSAL- athletics_modifier: strength_mod_level, athletics-trained, athletics-pen, athletics-misc
VM4:62 MULTIVERSAL- bluff_modifier: charisma_mod_level, bluff-trained, bluff-pen, bluff-misc
VM4:62 MULTIVERSAL- diplomacy_modifier: charisma_mod_level, diplomacy-trained, diplomacy-pen, diplomacy-misc
VM4:62 MULTIVERSAL- dungeoneering_modifier: wisdom_mod_level, dungeoneering-trained, dungeoneering-pen, dungeoneering-misc
VM4:62 MULTIVERSAL- endurance_modifier: constitution_mod_level, endurance-trained, endurance-pen, endurance-misc
VM4:62 MULTIVERSAL- heal_modifier: wisdom_mod_level, heal-trained, heal-pen, heal-misc
VM4:62 MULTIVERSAL- history_modifier: intelligence_mod_level, history-trained, history-pen, history-misc
VM4:62 MULTIVERSAL- insight_modifier: wisdom_mod_level, insight-trained, insight-pen, insight-misc
VM4:62 MULTIVERSAL- intimidate_modifier: charisma_mod_level, intimidate-trained, intimidate-pen, intimidate-misc
VM4:62 MULTIVERSAL- nature_modifier: wisdom_mod_level, nature-trained, nature-pen, nature-misc
VM4:62 MULTIVERSAL- perception_modifier: wisdom_mod_level, perception-trained, perception-pen, perception-misc
VM4:62 MULTIVERSAL- religion_modifier: intelligence_mod_level, religion-trained, religion-pen, religion-misc
VM4:62 MULTIVERSAL- stealth_modifier: dexterity_mod_level, stealth-trained, stealth-pen, stealth-misc
VM4:62 MULTIVERSAL- streetwise_modifier: charisma_mod_level, streetwise-trained, streetwise-pen, streetwise-misc
VM4:62 MULTIVERSAL- thievery_modifier: dexterity_mod_level, thievery-trained, thievery-pen, thievery-misc
app.js?1582765320:549 Auth'ed.
app.js?1582765320:549 Go post auth!
app.js?1582765320:549 initial setup
app.js?1582765320:550 joining game...
4app.js?1582765320:547 Full load page!
app.js?1582765320:549 We have 28 pages
app.js?1582765320:548 Player -La6vUpt2DkpIOTVnOG0 is offline...
app.js?1582765320:548 Player -La7nr_Jn4kYynTwwEJY is offline...
app.js?1582765320:548 Player -La7od8nMXK_vyenl7XL is offline...
app.js?1582765320:548 Player -Lb4tiopgwPBqj8wwyXd is offline...
app.js?1582765320:548 Player -Lbk0lYj9aTw-O630TB0 is offline...
app.js?1582765320:548 Player -Lbu1yEakYNhQDkMbCvS is offline...
app.js?1582765320:548 Player -Lbu5Xkywus2KmFMUPCS is offline...
app.js?1582765320:550 Deferred finish joining...
app.js?1582765320:541 Firebase Online
DevTools failed to parse SourceMap: chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/include.preload.js.map
DevTools failed to parse SourceMap: chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/include.postload.js.map
DevTools failed to parse SourceMap: https://app.roll20.net/js/d20/underscore-min.map

It appears to be working now on Zeitgeist at least.