Answer the question
In order to leave comments, you need to log in
Bot using Nightmare returns undefined on Heroku, what's wrong?
I deployed a bot that parses a cargo transportation site, when I launch it at home, everything works as it should. When uploaded to Heroku it returns undefined. Is it even possible to properly deploy this bot on Heroka?
Link to the repository
https://github.com/Pron9I/ATIbot
PS This is the first something serious for me, do not judge strictly)
Answer the question
In order to leave comments, you need to log in
for nightmare you need a screen, on a Linux vds, for example, you need to install x11 tools.
so it’s unlikely that it will start so easily, however, at the request of heroku nighmare, Google finds some ready-made options for building on heroku
, and by the way, instead of nightmare, I advise you to take a closer look at puppeteer, because the first one has not been supported for a long time
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question