PUPPETER AND PDF

I need help i am having problem randomly to launch puppeter. i use the instance only to create a PDF
Solution:
you can deploy this template https://railway.app/template/browserless into your project then use its BROWSER_WS_ENDPOINT variable as the browserWSEndpoint option to puppeteer.connect as shown in the browserless docs https://www.browserless.io/docs/puppeteer-library
Jump to solution
5 Replies
Percy
Percy9mo ago
Project ID: 6ef3d433-2f28-41b5-a2db-0be2754c6c4a
JoseGerdes
JoseGerdes9mo ago
6ef3d433-2f28-41b5-a2db-0be2754c6c4a i am using nixpacks
Brody
Brody9mo ago
i can recommend using browserless instead of chrome, i am currently working on the template and will update you when done
Solution
Brody
Brody9mo ago
you can deploy this template https://railway.app/template/browserless into your project then use its BROWSER_WS_ENDPOINT variable as the browserWSEndpoint option to puppeteer.connect as shown in the browserless docs https://www.browserless.io/docs/puppeteer-library
Brody
Brody9mo ago
it doesnt do pdfs, but heres a good example https://github.com/brody192/puppeteer-example
Want results from more Discord servers?
Add your server