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

"There was an error communicating with the QuantumRoll server. undefined" on Dev system, including Custom Sheet Sandbox.

February 10 (5 years ago)

Edited February 11 (5 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator

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.

February 11 (5 years ago)

Edited February 11 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

I'm having this problem too. Its happening on both the Dev server (custom sandbox) and the normal server.

SendChat crashes the sandbox if it has a roll, but works fine if it has no roll.

Using Chrome on Windows.

February 14 (5 years ago)

Edited February 14 (5 years ago)
Nicholas
Roll20 Team

Hey Chris D. and GiGs - 

I was able to reproduce this issue on my end as well so a ticket has been submitted to the dev team for getting it fixed. Thank you for bringing this to our attention! I'll do my best to keep you posted regarding the progress. In the meantime, happy scripting! :)

February 15 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

Thank you!

February 15 (5 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator

Thank you very much as well!

Just out of curiosity, what did you need to do to force this to happen elsewhere? I mean it seems like it is affecting 2 people and nobody else, so I am wondering what we did to make it happen?

February 15 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

I just assumed it was happening to everyone, but not people use this technique so it had slipped by without notice. I hadnt considered that it might just be happening to us.

February 24 (5 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator

Just a reminder that this is still occuring. 

February 27 (5 years ago)
Nicholas
Roll20 Team

Hey Chris D. -

Thanks for checking in on this. We've definitely still got this on our radar and we're in the process of reviewing it to see how and when we can get this addressed. In the meantime, please let us know if there is anything we can do for you!

February 27 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter


Nicholas said:

In the meantime, please let us know if there is anything we can do for you!

I'm not sure how to answer this. I'm not trying to be rude, but having the function work properly - or providing a workaround - is the only satisfactory conclusion here. I dont know what else you can do?


February 27 (5 years ago)
Nicholas
Roll20 Team

Hey GiGs - 

Absolutely; I wholeheartedly agree. By that phrase, I'm simply trying to imply that I'm accessible to you and the community, so if you have further questions or concerns, you can always voice them to me and I'll do my best to figure out how I can help. Apologies for any miscommunications there!

April 06 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

Any movement on this issue?

April 25 (5 years ago)

I'm also having this issue, would really appreciate a workaround. 

April 26 (5 years ago)
Ulti
Pro
Sheet Author
API Scripter

Any news on this issue?

April 27 (5 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator

Yes, with the Production server being so slow these days, if it was not for this issue I would have moved my game to the Development system. but with the Dev system not being able to roll dice at all...

April 27 (5 years ago)

Edited April 27 (5 years ago)
DXWarlock
Sheet Author
API Scripter

Same, got this error at least two dozen times on our Saturday Night game this week: 
There was an error communicating with the QuantumRoll server.

The performance of the game/chat/rolls has been slowly getting worse last few weeks, but was bearable.
But this weekend chat was lagged up to 30 seconds at some points for rolls. And API not answering (no error or anything just not responding) until I restarted the sandbox, for it to hang again and do nothing, or eventually give the above error most of the times.
What should have been 20 minutes in real time for a fight took us 2 hours. At one point we almost stopped and went "Screw it, we will pick this up next week".

I'm not usually one to complain about the speed of the Roll20 service unless its just outright down or wont spin up my sandbox. I've been here since the start and had the ups and down and growing pains it went through and took them in stride.

But man, the last 2-3 weeks have been an effort in frustration and testing the limits of ones patience to try to GM a game, for me :)



April 27 (5 years ago)
Ajax
Pro

This has been going on now for weeks. I get this same error, sometimes restarting helps for a short while, but having to do this BREAKS the IMMERSION of the GAME!

April 28 (5 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator

Just want to say, particularly to the Roll20 team, that we seem to have two different issues being talked about here. 

The original post, and most of the original replies is that dice rolling is totally 100% broken for us on the Development machine. It never, ever works, something is broken, and ought to be fixed. 

The later posters seem to be talking about Quantum Roller requests from the production server requests timing out, which is a different problem. 

This is happening to me as well. Two months? 

May 06 (5 years ago)
Drespar
Roll20 Team

Hey folks -

We recognize this is an important issue, but at this time, we don’t have a diagnosis. We will absolutely let you know when we do.

May 06 (5 years ago)

Edited May 06 (5 years ago)
DXWarlock
Sheet Author
API Scripter

Thanks for the update Drespar!

It gotten pretty bad, and seems at least related to load maybe? (I'm 100% amateur spitball speculating here).
Not trying to armchair diagnose at all, way out of my wheelhouse, just giving some observed patterns and behaviors from my experience that hopefully you guys can find useful.

I notice on Saturdays starting around 8pm EST is when its at its worst. Tapering off to acceptable around 11pm-12. During the week daytime I can get in and have no issues at all. Friday evenings get 'iffy' if I'm in and wrapping up prep for Saturdays game.
I'm assuming Saturdays are the busiest days, and it's when I notice it the worst.

It's gotten so bad last week I don't know how many time we went "Welp, you guys want to take 5, again? API won't answer, Sandbox wont re-spin up, and rolls to chat are disappearing.."


May 06 (5 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator

Once again, this thread is not about the load related error communicating with the quantum roll server that sometimes happens on the production server.

This thread is about some people being unable to ever access the quantum server from the Dev system.  Totally and completely separate issues. 

May 24 (5 years ago)
Nicholas
Roll20 Team

Hey folks -

I just wanted to update you here that this issue appears to have been fixed with our most recent round of API server improvements. Would you mind doing some additional testing on the dev server and letting me know if you are still experiencing the problem, please? Thank you!

May 24 (5 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator

Thank you much!!!

Yes, chat and API dice rolling is working again on the Dev system!

Thanks!

May 24 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

Thats great news!