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

TypeError: Cannot read properties of undefined (reading 'quizQuestionAnswers') #5

Open
judemont opened this issue Apr 9, 2023 · 1 comment

Comments

@judemont
Copy link

judemont commented Apr 9, 2023

Hello,
When I run the script, first it work, but after I have this error :

/home/judemont/autre/kahootbot/node_modules/kahoot.js-updated/src/modules/backup.js:39
      this.quiz.quizQuestionAnswers = recover.defaultQuizData.quizQuestionAnswers;
                                                              ^

TypeError: Cannot read properties of undefined (reading 'quizQuestionAnswers')
    at handlers.recovery (/home/judemont/autre/kahootbot/node_modules/kahoot.js-updated/src/modules/backup.js:39:63)
    at Client._message (/home/judemont/autre/kahootbot/node_modules/kahoot.js-updated/src/kahoot.js:345:23)
    at WebSocket.<anonymous> (/home/judemont/autre/kahootbot/node_modules/kahoot.js-updated/src/kahoot.js:298:14)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/home/judemont/autre/kahootbot/node_modules/ws/lib/websocket.js:1068:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (/home/judemont/autre/kahootbot/node_modules/ws/lib/receiver.js:517:14)
    at /home/judemont/autre/kahootbot/node_modules/ws/lib/receiver.js:468:23
    at /home/judemont/autre/kahootbot/node_modules/ws/lib/permessage-deflate.js:308:9
    at /home/judemont/autre/kahootbot/node_modules/ws/lib/permessage-deflate.js:391:7

Node.js v18.13.0
@Epiano7
Copy link

Epiano7 commented Apr 21, 2024

Ran into the same issue, have you found a solution?

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