node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

Unable to use library in Node.js Azure functions

Open AnthonyPhan opened this issue 5 years ago • 2 comments

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?

AnthonyPhan avatar Feb 19 '20 12:02 AnthonyPhan

Anyone has found a solution for this?

filipe-campos avatar Jul 07 '21 18:07 filipe-campos

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

AnthonyPhan avatar Jul 08 '21 01:07 AnthonyPhan