Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants