I am trying to use a module called “kahoot.js”, and it isn’t working. I am not using the version from npm, as that no longer works, I am using the latest version (from GitHub - wwwg/kahoot.js: A library for interacting with Kahoot API.)
It works when I run it locally on port 80 (Ubuntu 18.04), however when I run it on Glitch, it doesn’t work. Doing a bit of debugging shows that it fails in line 19 in the kahoot.js “token.js” file. The line is:
res.on(“data”, chunk => {
It doesn’t throw an error, but it never gets a response. This problem also happens on Heroku. Any ideas? I’ve been trying to do this for a few days, but I haven’t been able to find a solution.