
On all of my campaigns on the Dev system, including the Custom Sheet Sandbox, every time I try to make a roll from the API, I get an error. Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your scripts and click the "Save Script" button and we'll attempt to start running them again. More info...
For reference, the error message generated was: There was an error communicating with the QuantumRoll server.
undefined
This happens whenever a dice is rolled through the API. Specifically, rolling a dice from the VTT dice roller tool works fine. typing into the chat window "/r 5d6" works fine. typing into the chat window "Inline roll [[2d12]]" works fine. But anything from the API, does not work at all. Specifically, even such a short and simple API as the following on("chat:message", function(msg) {
'use strict';
if(msg.type === "api" ) {
log(msg);
if ( msg.content.startsWith( "!cddTest" )) {
try {
sendChat( "player|" + msg.playerid, "no roll msg");
// sendChat( "player|" + msg.playerid, "/roll 3d6!");
sendChat( "player|" + msg.playerid, "inline roll [[d12]]");
// sendChat( "player|" + msg.playerid, "/roll 5d8!", function( ops ) {
//log(ops);
// sendChat( "player|" + msg.playerid, "after roll msg");
// });
} catch(err) {
log( "cddTest() error caught: " + err );
}
}
} // End if msgtype is api
}); sendChat( "player|" + msg.playerid, "no roll msg"); This works fine, with no error messages. sendChat( "player|" + msg.playerid, "/roll 3d6!"); and sendChat( "player|" + msg.playerid, "/roll 5d8!", function( ops ) {
log(ops);
sendChat( "player|" + msg.playerid, "after roll msg"); });
Nether one produce any output dice roll to the chat window, but all they produce the message below to the API. It does not cause the API to crash. {"who":"error","type":"error","content":"There was an error communicating with the QuantumRoll server."} The biggest problem is sendChat( "player|" + msg.playerid, "inline roll [[d12]]");
This causes the API to crash with the message above (the exact same message the other rolls produce, but with an "undefined" at the end, and fatal, instead of silent. Everything works fine on the production server. So two questions. (1) Why can't I get any rolls from the API off of the Dev server? Is it just me or everybody? How can I fix it? (2) When communication with the Quantum Roll server dies during an inline roll, could it be made to not crash the API? Thanks. Reasonably up to date Windows 10 and chrome and firefox. Windows defender. Cleared the firefox cache.