79168661

Date: 2024-11-08 03:03:08
Score: 3.5
Natty:
Report link

I’m encountering the same issue as others where my Angular application takes up to 5 minutes to load when generating a PDF using either Puppeteer or Playwright. The problem seems to be related to the main.js file of my frontend application, as it is the only file that takes a long time to load.

I initially thought it could be related to the Docker image I was using. When I used my local Docker image, I was able to generate the PDF successfully. However, when I deployed the image to Rancher, the PDF generation failed, and it took up to 5 minutes to load the main.js file.

I’ve tried various solutions, including switching to the Node Slim image and alternating between Puppeteer and Playwright, but neither solution resolved the issue.

Has anyone encountered this problem or know what could be causing the long load time for main.js when generating the PDF, specifically in the Rancher environment?

Any insights or suggestions would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): what could be
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tiago Silva Pereira