I’m sometimes seeing a crash – assuming when the Open Trivia DB returns an error. (Present in latest 2.0.5 although it was also there with the 1.x version I was running prior to updating).
Stack trace:
While running new OpenTDBError
in /var/home/aral/Projects/kitten/app/examples/trivia module [open-trivia-db](https://www.npmjs.com/package/open-trivia-db) /dist/src/Classes/OpenTDBError.js (line 25, column 45)
While running /var/home/aral/Projects/kitten/app/examples/trivia module [open-trivia-db](https://www.npmjs.com/package/open-trivia-db) /dist/src/Functions/getQuestions.js:104:27
While running step
in /var/home/aral/Projects/kitten/app/examples/trivia module [open-trivia-db](https://www.npmjs.com/package/open-trivia-db) /dist/src/Functions/getQuestions.js (line 33, column 23)
While running Object.throw
in /var/home/aral/Projects/kitten/app/examples/trivia module [open-trivia-db](https://www.npmjs.com/package/open-trivia-db) /dist/src/Functions/getQuestions.js (line 14, column 53)
While running rejected
in /var/home/aral/Projects/kitten/app/examples/trivia module [open-trivia-db](https://www.npmjs.com/package/open-trivia-db) /dist/src/Functions/getQuestions.js (line 6, column 65)
While running process.processTicksAndRejections
in node:internal/process/task_queues (line 95, column 5)
I’m sometimes seeing a crash – assuming when the Open Trivia DB returns an error. (Present in latest 2.0.5 although it was also there with the 1.x version I was running prior to updating).
Stack trace:
The relevant code is below (
error
isundefined
):