how can i install puppeteer to my application in Railway?
I'm running a Discord bot that needs to use puppeeter to generate images, and puppeeter needs to install some dependencies on the machine in order to work, is there any way to make this run on Railway?
29 Replies
Project ID:
N/A
N/A
do you have "puppeteer" in your package.json
yes
not the core version?
i have this error
I believe this error occurs as I need to install some dependencies using apt-get as the documentation shows
show me the documentation please
GitHub
puppeteer/docs/troubleshooting.md at main · puppeteer/puppeteer
Node.js API for Chrome . Contribute to puppeteer/puppeteer development by creating an account on GitHub.
are you deploying with nixpacks or a dockerfile
nixpacks
add this as a nixpacks.toml file to your project
I solved it using Dockerfile to install all dependencies, thanks!
damn and I already had the next thing to try already prepared
btw @influente id recommend using browserless
there is a template for it
how it works?
im having the same problem
gooogle browserless
is this right? https://railway.app/template/browserless
how can i use it
it created a repo on my github
i hope u can help me pls 🙏
i can pay u for help if its necesary
pls I need this to work
🙏
may i ask you what you are wanting to use puppeteer / browserless for?
Im trying to learn how to use it
but it dont works on railway
but what are you going to use it for specifically
I think that puppeteer is used to extract data from websites
Im watching tutorial to learn how to use it
Im learning programation
thats web scraping, web scraping is in railways tos
oh ok
so how can I solve the error
i wont be able to provide support for something that is in railways tos
but you helped someone on this thread
or is not the same
they where not web scraping
they where just generating images
mmh how could you make sure it won't be used for scrapping?
https://railway.app/legal/terms
section 6, subsection 8
going to lock this thread now, as it has been solved