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

[Help] Can't seem to get API's to work at all.

So, I wanted to get around to creating my own API for some specific issues, but before making my own I wanted to mess around with pre-made API's to know what was possible. I went to Settings --> API Scripts and found Tokenmod from the list, since I've used that slightly before. Added it, which seemingly worked fine. I launched into my game and typed "!token-mod --help" and got nothing. I tried multiple other commands and still nothing. Figured it might be that specific API so I tried a simple one like namegen, but that one also gives me nothing. Am I missing something?
1571778246
Michael I.
Pro
Sheet Author
I assume that the ""are just to show us the command other wise the command should be !token-mod --help Do you have any other API's currently loaded?
1571780390
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Check to see if there is any text at all in the API log on the API page. I had a similar issue yesterday.
Michael I. said: I assume that the ""are just to show us the command other wise the command should be !token-mod --help Do you have any other API's currently loaded? Yea the quotations was just to show the command. I simply put in !token-mod --help And no I have no other API's added. keithcurtis said: Check to see if there is any text at all in the API log on the API page. I had a similar issue yesterday. API Output Console is entirely blank.
1571782736
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Tokenmod, like all of Aaron's scripts, has a detailed bootup log that it outputs; if you aren't seeing anything in the api console, then something is wrong with your sandbox. Try restarting your api sandbox from the api page and make sure you are logged into the game for that api page. You should at the very least see something about rebooting the sandbox. If it still doesn't work, post the text you get from the console.
1571784054
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I'm curious about this. I didn't have time to follow up yesterday when it happened to me.
Scott C. said: Tokenmod, like all of Aaron's scripts, has a detailed bootup log that it outputs; if you aren't seeing anything in the api console, then something is wrong with your sandbox. Try restarting your api sandbox from the api page and make sure you are logged into the game for that api page. You should at the very least see something about rebooting the sandbox. If it still doesn't work, post the text you get from the console. Nothing happens when I hit Restart API Sandbox. I can see that when I open up the API page, I get an error in my Firefox console. That might be relevant, although I have tried all of this in Edge as well. The error is; &nbsp;&nbsp;&nbsp;&nbsp; TypeError: snap.val(...) is null 5343165:1791:57 &nbsp;&nbsp;&nbsp; &lt;anonym&gt; <a href="https://app.roll20.net/campaigns/scripts/5343165:1791" rel="nofollow">https://app.roll20.net/campaigns/scripts/5343165:1791</a> &nbsp;&nbsp;&nbsp; yd <a href="https://static.firebase.com/v0/firebase.js?2:85" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:85</a> &nbsp;&nbsp;&nbsp; fc <a href="https://static.firebase.com/v0/firebase.js?2:39" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:39</a> &nbsp;&nbsp;&nbsp; yd <a href="https://static.firebase.com/v0/firebase.js?2:85" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:85</a> &nbsp;&nbsp;&nbsp; Eb <a href="https://static.firebase.com/v0/firebase.js?2:85" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:85</a> &nbsp;&nbsp;&nbsp; Eb <a href="https://static.firebase.com/v0/firebase.js?2:86" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:86</a> &nbsp;&nbsp;&nbsp; Wd <a href="https://static.firebase.com/v0/firebase.js?2:103" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:103</a> &nbsp;&nbsp;&nbsp; Ec <a href="https://static.firebase.com/v0/firebase.js?2:51" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:51</a> &nbsp;&nbsp;&nbsp; Wd <a href="https://static.firebase.com/v0/firebase.js?2:103" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:103</a> &nbsp;&nbsp;&nbsp; Sa <a href="https://static.firebase.com/v0/firebase.js?2:20" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:20</a> &nbsp;&nbsp;&nbsp; Wd <a href="https://static.firebase.com/v0/firebase.js?2:103" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:103</a> &nbsp;&nbsp;&nbsp; p <a href="https://static.firebase.com/v0/firebase.js?2:106" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:106</a> &nbsp;&nbsp;&nbsp; fd <a href="https://static.firebase.com/v0/firebase.js?2:72" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:72</a> &nbsp;&nbsp;&nbsp; Xb <a href="https://static.firebase.com/v0/firebase.js?2:77" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:77</a> &nbsp;&nbsp;&nbsp; &lt;anonym&gt; self-hosted:1003 &nbsp;&nbsp;&nbsp; Xb <a href="https://static.firebase.com/v0/firebase.js?2:71" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:71</a> &nbsp;&nbsp;&nbsp; Wc <a href="https://static.firebase.com/v0/firebase.js?2:69" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:69</a> &nbsp;&nbsp;&nbsp; Rc <a href="https://static.firebase.com/v0/firebase.js?2:65" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:65</a> &nbsp;&nbsp;&nbsp; onmessage <a href="https://static.firebase.com/v0/firebase.js?2:64" rel="nofollow">https://static.firebase.com/v0/firebase.js?2:64</a>
1571850949
Michael I.
Pro
Sheet Author
roll20 doesn't play nice with the edge browser, they recommend Firefox and Chrome if its not working in firefox you may want to try chrome and see if its working, if so we know its an issue with Firefox
Michael I. said: roll20 doesn't play nice with the edge browser, they recommend Firefox and Chrome if its not working in firefox you may want to try chrome and see if its working, if so we know its an issue with Firefox It seems to be an issue with that specific game, as I just tried adding the same API to an old game of mine and that works fine. Suppose I'll just test in this game instead, but still an odd issue.
1571926580
Michael I.
Pro
Sheet Author
You are correct that is a odd issue.