Blank PDF pages
ibdf opened this issue · 1 comments
ibdf commented
I am getting blank PDF pages when deployed to LAMBDA but it works fine locally.
What's interesting is that the PDF pages although they are blank, they have the correct amount of pages.
I am not doing anything fancy:
`
this.browser = await playwright.launchChromium({
headless: true
});
this.ctx = await this.browser.newContext();
const page = await this.ctx.newPage();
await page.goto(url);
pdf = await page.pdf();
`
It's running on expressjs, deployed with serverless. I get no error, I get a valid PDF buffer back. I am able to open the PDF file, but the pages are always blank.
ibdf commented
This seems to be an issue with serverless config and the API gateway. Closing this ticket.
CodeGenieApp/serverless-express#99