We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HTML content with HTTPS links like this cause lambda to respond with a 502 error:
I used this to render the HTML: await page.goto(data:text/html;base64,${Buffer.from(html).toString('base64')}, { waitUntil: 'networkidle0' });
data:text/html;base64,${Buffer.from(html).toString('base64')}
I also tried this: await page.setContent(html);
When I changed the links to HTTP, the HTML rendered as expected.
I wrangled with this for several hours and then moved to chrome-aws-lambda and the issue went away without changing the puppeteer code.
The text was updated successfully, but these errors were encountered:
That first part should read something like this (git apparently rendered the link just fine and it disappeared)...
HTML content with HTTPS links like this cause lambda to respond with a 502 error: link href="https://www.website.com/css/style.css" rel="stylesheet"
Sorry, something went wrong.
No branches or pull requests
HTML content with HTTPS links like this cause lambda to respond with a 502 error:
I used this to render the HTML:
await page.goto(
data:text/html;base64,${Buffer.from(html).toString('base64')}
, {waitUntil: 'networkidle0'
});
I also tried this:
await page.setContent(html);
When I changed the links to HTTP, the HTML rendered as expected.
I wrangled with this for several hours and then moved to chrome-aws-lambda and the issue went away without changing the puppeteer code.
The text was updated successfully, but these errors were encountered: