Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found an issue when the room doesn't exist. #11

Open
dustinrouillard opened this issue Nov 17, 2017 · 1 comment
Open

Found an issue when the room doesn't exist. #11

dustinrouillard opened this issue Nov 17, 2017 · 1 comment

Comments

@dustinrouillard
Copy link
Contributor

I made a pull request to actually let you know what the error is when this pops up, I did some research and it looks like this happens whenever the room is not accessible or doesn't exist for whatever reason. @wwwg I'd love if you'd merge my pull request that I've linked below :)

Code that will reproduce
(Basically every <Client>.join event with a room that is not accessible)

var Kahoot = require("kahoot.js");
var k = new Kahoot;
console.log("Joining kahoot...");
k.join(000000, "kahoot.js").then(() => {
	console.log("Joined Quiz");
});

Error output

TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.

My pull request that will output an error letting you know what is wrong. #10

@gmisail
Copy link

gmisail commented Jan 12, 2018

this happens even when a room does exist for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants