-
Notifications
You must be signed in to change notification settings - Fork 10
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
TypeError for PlayModel #8
Comments
Has this happened more than once? And was it while connecting to a room? If this is a reoccurring error I'll certainly add a check for it. |
I'll keep an eye on it but I think it did appear to happen when logging in. EDIT: Just happened again on advance. When the bot auto restarted it kept throwing that stacktrace as well |
@anjanms it happens when reordering the waitlist it seems http://prntscr.com/98xq8r EDIT: that's a different stacktrace than the one that occured for playMedia, seems somehow the _id's get undefined for these 2 |
I've added checks that should prevent the errors. Please give v1.0.2 a try and let me know. The Dubtrack API does some strange things at times. In this case it's not that the _ids themselves are null/undefined, but what it's trying to read them from is. |
Thanks, I'll let you know. That is very strange behavior indeed... |
I dunno if this is part of the same issue, but I've just checked my logs for the bot on my openshift account and I have a similar error, but for username (taken from the chat event
it occurred twice in less that 24 hours (I don't have time stamps for them) |
just checked my jenkins build logs, it's using dubapi@1.0.2 |
@anjanms The original issue i was reporting seems to be fixed for now. The one @NiTrOGhost is reporting i have not seen yet though and is a different issue, then again on my chat listener event i ignore if |
@thedark1337 Awesome. @NiTrOGhost That can happen if the user that sent the message is not in the internal users array. Usually when that happens the user isn't in the room server-side either. I would recommend doing a typeof or undefined check on the For instance, our bot will suggest that an undefined user refresh if they attempted to trigger a command. |
Not sure how this happened but I got this quite a bit earlier. Seems there needs to be a check if the _id exists or not 👍
The text was updated successfully, but these errors were encountered: