P
P
Pron92020-04-28 19:42:02
JavaScript
Pron9, 2020-04-28 19:42:02

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

1 answer(s)
D
Dmitry, 2020-04-30
@Pron9

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 question

Ask a Question

731 491 924 answers to any question