- Newest
- Most votes
- Most comments
It's unclear what you are trying to accomplish by loading Chromium in AWS Lambda. The Puppeteer library may be assuming the code is running on a full operating system that it can access. However, since the code is running in a Lambda function, this may not be the case, potentially leading to the error you're experiencing.
Without more details about your specific use case and implementation, it's difficult to determine the root cause of the issue conclusively. More information about what you're attempting to achieve and the steps you've taken so far would be helpful in diagnosing the problem and suggesting a solution.
Please provide additional context about your project, the specific error you're encountering, and the steps you've taken so far. With more details, I can better assess the situation and offer more targeted guidance.
@hsoni-from-aws This application is based on a lambda function developed by a co-worker last year which used a similar approach. The limitations of power bi required that the html code be loaded into a headless browser so it could be manipulated before generating a pdf. The lambda function created by my co-worker works as expected but uses serverless v3, node 18x, and a slightly older version of puppeteer.
The specific error I am getting is:
ERROR: font_unique_name_lookup_linux.cc(21)] @font-face src: local() instantiation only available when connected to browser process.
I have consulted message forums and co-pilot. I have tried using the features of puppeteer to define a font to use. I enabled the dumpio flag, so I could compare the debug output from running on aws vs. running locally. I have started exploring using a fontconfig file and uploading fonts as a part of my package. All of the changes I have tried have not had an effect on the error message I am seeing.
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago