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

[Bug][API] There was an error communicating with the QuantumRoll server. undefined

Hi, I'm receiving the above message in the when attempting to run a particular script. Before I bore anyone with it, I just want to check this is the correct forum for it. I'm using Power Cards 3.8.8 and running a script that's calling 64 rollable tables for its output (there are no recursive tables within these). If I remove any 2 of these tables from the script it runs correctly. It has also been running correctly for the last few weeks (up until this morning 0600 AEST). Which makes me think it's a timeout I'm receiving more than something being wrong. But I have no development background so I don't have the skillset to clue it out. I've deconstructed the script entirely and rebuilt it line by line. It's fine until I get it back to 63 rollable tables, and then it dies again.  Is this the right place for this discussion? If so, any initial ideas before I post it up? Thanks. Byron.
1546230010
The Aaron
Pro
API Scripter
This is the right place. I'm assuming you're passing all these rollable tables as individual inline roll arguments to PowerCards?  If you take the ! off the front, does the results in chat expand all 64 tables?  If it doesn't, then it is a Roll20 issue as it's happening before the API even sees it.  If it does, then it might be an issue with the script (though I don't know what). Where do you see the error?
Hi Aaron, thanks for getting back to me. Following your instructions (removinf the !), the tables are all expanded. I get "<span class="inlinerollresult showtip tipsy-n-right" original-title="Rolling [txt] 1t[nameHalflingM-first] = ( Theudebald )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: rgb(64, 64, 64); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">0 &nbsp;" &nbsp; as the result for all of them. But if I hover over the "0" I see the table result in hover text. It's a random NPC generator. So it's nothing complicated. Race, name, age etc. Here's what it looks like. There's a couple of other table rolls but it doesn't seem to matter which lines I use, once I have more than 62 tables rolling, it craps out.&nbsp; I've pasted the main body of the script below. I'd love to know it was something I'm not doing the right and I've just been fluking it working in the past :)&nbsp; The error is presenting in the API Output Console : For reference, the error message generated was:&nbsp; There was an error communicating with the QuantumRoll server. undefined !power {{ --name|Random NPC Generator&nbsp; --hroll|[[ [$Roll1] 1d44 ]] [[ [$Roll2] 1d22 ]] [[ [$Roll3] 1d11 ]]&nbsp; -- ?? $Roll1 &lt;= 8 ?? Human Male: |^^ - [[ [txt] 1t[nameHumanM-first] ]] [[ [txt] 1t[nameHuman-last] ]] ^^ - [[ [txt] 1t[nameHumanM-first] ]] [[ [txt] 1t[nameHuman-last] ]]&nbsp; -- ?? $Roll1 &gt;= 9 AND $Roll1 &lt;= 12 ?? Human Female: |^^ - [[ [txt] 1t[nameHumanF-first] ]] [[ [txt] 1t[nameHuman-last] ]] ^^ - [[ [txt] 1t[nameHumanF-first] ]] [[ [txt] 1t[nameHuman-last] ]]&nbsp; -- ?? $Roll1 &gt;= 13 AND $Roll1 &lt;= 16 ?? Dwarf Male: |^^ - [[ [txt] 1t[nameDwarfM-first] ]] [[ [txt] 1t[nameDwarf-last] ]] ^^ - [[ [txt] 1t[nameDwarfM-first] ]] [[ [txt] 1t[nameDwarf-last] ]]&nbsp; -- ?? $Roll1 &gt;= 17 AND $Roll1 &lt;= 18 ?? Dwarf Female: |^^ - [[ [txt] 1t[nameDwarfF-first] ]] [[ [txt] 1t[nameDwarf-last] ]] ^^ - [[ [txt] 1t[nameDwarfF-first] ]] [[ [txt] 1t[nameDwarf-last] ]]&nbsp; -- ?? $Roll1 &gt;= 19 AND $Roll1 &lt;= 22 ?? Elf Male: |^^ - [[ [txt] 1t[nameElfM-first] ]] [[ [txt] 1t[nameElf-last] ]] ^^ - [[ [txt] 1t[nameElfM-first] ]] [[ [txt] 1t[nameElf-last] ]]&nbsp; -- ?? $Roll1 &gt;= 23 AND $Roll1 &lt;= 24 ?? Elf Female: |^^ - [[ [txt] 1t[nameElfF-first] ]] [[ [txt] 1t[nameElf-last] ]] ^^ - [[ [txt] 1t[nameElfF-first] ]] [[ [txt] 1t[nameElf-last] ]]&nbsp; -- ?? $Roll1 &gt;= 25 AND $Roll1 &lt;= 26 ?? Halfling Male: |^^ - [[ [txt] 1t[nameHalflingM-first] ]] [[ [txt] 1t[nameHalfling-last] ]] ^^ - [[ [txt] 1t[nameHalflingM-first] ]] [[ [txt] 1t[nameHalfling-last] ]]&nbsp; -- ?? $Roll1 &gt;= 27 AND $Roll1 &lt;= 28 ?? Halfling Female: |^^ - [[ [txt] 1t[nameHalflingF-first] ]] [[ [txt] 1t[nameHalfling-last] ]] ^^ - [[ [txt] 1t[nameHalflingF-first] ]] [[ [txt] 1t[nameHalfling-last] ]]&nbsp; -- ?? $Roll1 &gt;= 29 AND $Roll1 &lt;= 32 ?? Half-orc Male: |^^ - [[ [txt] 1t[nameOrcM-first] ]] [[ [txt] 1t[nameOrc-last] ]] ^^ - [[ [txt] 1t[nameOrcM-first] ]] [[ [txt] 1t[nameOrc-last] ]]&nbsp; -- ?? $Roll1 &gt;= 33 AND $Roll1 &lt;= 34 ?? Half-orc Female: |^^ - [[ [txt] 1t[nameOrcF-first] ]] [[ [txt] 1t[nameOrc-last] ]] ^^ - [[ [txt] 1t[nameOrcF-first] ]] [[ [txt] 1t[nameOrc-last] ]]&nbsp; -- ?? $Roll1 &gt;= 35 AND $Roll1 &lt;= 36 ?? Half-elf Male: |^^ - [[ [txt] 1t[nameElfM-first] ]] [[ [txt] 1t[nameHuman-last] ]] ^^ - [[ [txt] 1t[nameElfM-first] ]] [[ [txt] 1t[nameHuman-last] ]]&nbsp; -- ?? $Roll1 &gt;= 37 AND $Roll1 &lt;= 38 ?? Half-elf Female: |^^ - [[ [txt] 1t[nameHumanF-first] ]] [[ [txt] 1t[nameElf-last] ]] ^^ - [[ [txt] 1t[nameHumanF-first] ]] [[ [txt] 1t[nameElf-last] ]]&nbsp; -- ?? $Roll1 &gt;= 39 AND $Roll1 &lt;= 40 ?? Tiefling Male: |^^ - [[ [txt] 1t[randomVillainNames] ]] [[ [txt] 1t[randomEvilDragonNames] ]] ^^ - [[ [txt] 1t[randomVillainNames] ]] [[ [txt] 1t[randomEvilDragonNames] ]]&nbsp; -- ?? $Roll1 == 41 ?? Tiefling Female: |^^ - [[ [txt] 1t[nameElfF-first] ]] [[ [txt] 1t[randomEvilDragonNames] ]] ^^ - [[ [txt] 1t[nameElfF-first] ]] [[ [txt] 1t[randomEvilDragonNames] ]]&nbsp; -- ?? $Roll1 &gt;= 42 AND $Roll1 &lt;= 43 ?? Dragonborn Male: |^^ - [[ [txt] 1t[randomVillainNames] ]] [[ [txt] 1t[randomTribalNames] ]] ^^ - [[ [txt] 1t[randomVillainNames] ]] [[ [txt] 1t[randomTribalNames] ]]&nbsp; -- ?? $Roll1 == 44 ?? Dragonborn Female: |^^ - [[ [txt] 1t[nameElfF-first] ]] [[ [txt] 1t[randomTribalNames] ]] ^^ - [[ [txt] 1t[nameElfF-first] ]] [[ [txt] 1t[randomTribalNames] ]]&nbsp;
1546266852
The Aaron
Pro
API Scripter
If you take out a few of the rolls to the point where it works and then run it without the ! Do you still get the “0” result? I’m fearing it might be related to this:&nbsp; <a href="https://app.roll20.net/forum/post/6778746/api-sendchat-returns-bad-results-to-callback-with-rollable-tables-expressions-with-inline-rolls" rel="nofollow">https://app.roll20.net/forum/post/6778746/api-sendchat-returns-bad-results-to-callback-with-rollable-tables-expressions-with-inline-rolls</a> Do you have anywhere that you are using a nested inline roll for the number of times to roll on a table? (I didn’t see a case, but I might have missed one).&nbsp;
1546269666

Edited 1546269789
Boz
Pro
Hi Aaron, I've had a look. When I reduce the script to a working number of rollable tables and then remove the "!", I still get "0"s as results. However, I believe this is a bi-product of using [txt] in each table roll. If I take out the [txt] i get the full text result for each (along with the bright yellow text highlight which I don't fancy - hence the [txt] entry for each table roll). -- ?? $Roll1 &gt;= 19 AND $Roll1 &lt;= 22 ?? Elf Male: |^^ -&nbsp; <span class="userscript-inlinerollresult showtip tipsy-n-right" title="Rolling 1t[nameElfM-first] = ( Theren )" style="background-color: rgb( 254 , 246 , 142 ) ; border: 2px solid rgb( 254 , 246 , 142 ) ; padding: 0px 3px ; font-weight: bold ; cursor: help ; font-size: 1.1em ; color: rgb( 64 , 64 , 64 ) ; font-family: &quot;helvetica neue&quot; , &quot;helvetica&quot; , &quot;arial&quot; , sans-serif">Theren &nbsp; <span class="userscript-inlinerollresult showtip tipsy-n-right" title="Rolling 1t[nameElf-last] = ( Ethanasath )" style="background-color: rgb( 254 , 246 , 142 ) ; border: 2px solid rgb( 254 , 246 , 142 ) ; padding: 0px 3px ; font-weight: bold ; cursor: help ; font-size: 1.1em ; color: rgb( 64 , 64 , 64 ) ; font-family: &quot;helvetica neue&quot; , &quot;helvetica&quot; , &quot;arial&quot; , sans-serif">Ethanasath &nbsp;^^ -&nbsp; Galinndan &nbsp; Rilnor I'm not using any rolls to determine the number of table rolls anywhere. All mine are set to "1t" across the board (primarily because I've never been able to get 2t or any variation other than 1t to display correctly). It's a mystery. Particularly since I've been using this in High Volume for a while before this morning. And then it just died. Sorry, should also add, I checked removing all the [txt] entries and running it, but it still bombed with the same error (as per your link) unless the table numbers are reduced below 63.
1546279443
The Aaron
Roll20 Production Team
API Scripter
I think this must be something in the backend. I base this on a few things: There are several unresolved known issues with the API's connection to the roll server (&nbsp; 1 , 2 , etc) It was working and then stopped.&nbsp; (I'm making the assumption that you haven't changed your setup at all between it working and it not working, and that the Power Card script didn't silently update) I'm going to move this to the Bugs Forum, I think that's the next route that needs to be pursued.
1546279591
The Aaron
Roll20 Production Team
API Scripter
Please perform all 4 of these steps, even if they seem unlikely to help: Detailed description of the problem Minimum number of steps to reproduce the problem Description of setup Browser + Version Browser Addons/Extensions Operating System Bug Triage Results Please carefully work through to the first three steps of our guide to&nbsp; Solving Technical Issues : Step 1: Make sure to use the right browser Please check if these issues persist when using both Chrome&nbsp; and&nbsp; Firefox. Step 2: Ensure that there are no extensions/addons interfering with Roll20 Please disable&nbsp; all&nbsp; add-ons/extensions. Step 3: Clear your cache If none of the above succeed in resolving the problem, please thoroughly work through&nbsp; Step 4 .&nbsp; (Don't forget the complete Console Log!) Supplemental &nbsp;Information Including screenshots by using the "Attach a File" link when submitting a post can provide a great deal of information! The more information you can provide, the better able a fix will be reached.
Thanks, Aaron. I appreciate you taking the time to look into this for me. Just on 0600 New Years day here AEST. I'll start on this right after the coffee kicks in :)
Hi Aaron, I'm not sure what to do. I ran a load of tests across 8 browsers for the same result. Got no errors on 59 or fewer rollable table calls. But got increasing numbers of errors when using 60-62 rollable tables. Then total failure on all scripts with more than 62 rollable tables. So I was about to write it all up but thought I might run a few similar tests in a different campaign. And I found it didn't fail in that other (older) campaign. So I copied the same script back into the campaign where it has failed for the last 24 hours, and now it runs every time. Very frustrating. But equal measures relieving. Are the API's for different campaigns related? Because they both contain some of the same tables, as I copied them out of the old one (where it worked just now) to put in the new one (where it has not worked all day but now works again). When I say "new" campaign, it's 6 or so months old. Is there any chance there was a conflict caused by having identical data in multiple operating campaigns (I use both at the same time as we play)?