#Discord Bot runs Locally, doesn't run on host
1 messages · Page 1 of 1 (latest)
Looking at the post in the logs, it shows the error is coming from a require() call, so it's very likely to do with an incorrect dependency
i assumed it to be canvas, but how would i test for which one locally? i get no errors on my machine
same exact code aswell
I'm not good at JS so I can't say for sure as the errors are not familiar to me. But that's my best guess basing on other experience
That just makes it more likely it's a depenceny error, because you probably have a version of the module required on your PC, but it's either missing or the wrong version on the server
yeah, i thought i could try to do rm node_modules then reinstall it
but i can't run npm i as the server auto stops when it encounters the error
i also can't SSH in, commands are blocked through it
Are you renting a VPS or a bot hosting service?
using their bot hosting service
you won't have SSH access to managed hosting like the bot hosting service
ah fairs
generally how they work is it's put in a docker container, and in the files you provide some kind of dependency list (I'm not sure how nodeJS does it) which it reads and installs on every run
but the file it uses is package.json
basically requirements.txt but more stuff lol
ah fairs
support says to install the files locally and to then upload it, but i've already tried that a few times 😭
Do not bypass the swear filter.
My bad