-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't generate PDF on production #30
Comments
Thanks for posting. I'll take a look and follow up when I find any additional information. |
@diegoolavarria Sorry for the delay in responding to this. I did some digging and it is possible that your EC2 instance is missing some required dependencies. I would suggest taking a look at this link: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix Run this command on your ECS2 instance at a shell prompt: This link gives some details on setting up puppetteer in a headless environment: |
I also can't get Puppeteer to run on an ECS instance. I update my Dockerfile to follow the one in the repository: it starts
However, now I get the error
Clearly |
I deployed my Nodejs app on AWS EC2 running Linux/4.8.3. When trying to generate a pdf from HTML generated in the server (then I send the buffer to the browser), it shows a CORS policy error.
I tried sending {args: ['--no-sandbox']} as launch parameters with no success. pdfContent is my generate HTML code :
Server side, is showing me this:
Thank you!
The text was updated successfully, but these errors were encountered: