marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

Unable to use library in Node.js Azure functions #553

Open AnthonyPhan opened 4 years ago

AnthonyPhan commented 4 years ago

Hi All,

I am trying to use this module in a node.js Azure function app. The aim is to make a server-less function that converts a html stings to pdf files. Server-less functions on a consumption based plan have a maximum memory of 1.5GB. Unfortunately when I publish my function I receive the following error which indicates that i have insufficient memory (as indicated here) .

Received the exit code '3221225477' Fatal Windows exception, code 0xc0000005.

Is there a way to reduce the memory consumption of the module to <1.5GB so that it can run on a consumption based plan?

filipe-campos commented 3 years ago

Anyone has found a solution for this?

AnthonyPhan commented 3 years ago

What I had to do was update my function apps plan to have increased RAM. Unfortunately this increased my cost significantly.