Puppeteer Hangs

Hi! I have Pupeteer up and running with node on railway, but for some reason, my job just hangs when I open too many (10-20) tabs. I automatically kill any worker that is idle for 10 minutes and almost all of them end up idle and killed and restarted! Looks like Puppeteer just doesn't load pages on Railway. 10-20 tabs really is not that much and there are no resource spikes in the Railway console. Why else would this job get killed? This job runs fine locally.
20 Replies
Percy
Percy6mo ago
Project ID: 98f66160-ce86-4b15-a73b-cab912256208
themkrage
themkrageOP6mo ago
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brody6mo ago
have you tried using the browserless template instead of running chrome in your container?
themkrage
themkrageOP6mo ago
I do not want to pay for a browserless subscription and was hoping to host all on Railway. Browserless is quite pricy I believe
Brody
Brody6mo ago
you can self host it on railway with the ready made browserless template
themkrage
themkrageOP6mo ago
Yes, but you need a Browserless subscription to use this
Brody
Brody6mo ago
no you don't
themkrage
themkrageOP6mo ago
I do not want to purchase Browserless as I need to do mass amounts of scraping. The job runs locally using Pupeteer, so why would I need to purchase Browserless? oh Perhaps I'm confused what this does
Brody
Brody6mo ago
but you should know scraping is in railways tos, so unless you have permission to scrape what you are scraping, it wouldn't be allowed on Railway
themkrage
themkrageOP6mo ago
Yes I do
Brody
Brody6mo ago
then you're all set
themkrage
themkrageOP6mo ago
So how can I use this? I can look around, but i seems like you put the browserless url from this instance into your pupeteer initializer?
Brody
Brody6mo ago
themkrage
themkrageOP6mo ago
So does Railway pay to host Browserless then? and this is something we get to use Thank you, can try it out
Brody
Brody6mo ago
you don't need to pay anything to self host browserless, I'm not sure where you are getting that from
themkrage
themkrageOP6mo ago
they have a license required on their site to self-host, so i assumed you had to pay hmm
Brody
Brody6mo ago
are you using it for commercial use?
themkrage
themkrageOP6mo ago
not quite? we use it scrape information that powers our product, but its not like we sell the scraping as a service
Brody
Brody6mo ago
sounds good to me
Want results from more Discord servers?
Add your server