Open xhaferd opened 3 months ago
Usually happens on very badly formed HTML. Like when someone put an unescaped stack trace inside.
Error message tells me very little without the HTML that causes this.
We have some protection against large input, but cloud functions may have even stricter limitations.
You may need to adjust limits
options to sensible values.
I am using this library within a lambda function to convert email contents to plain text, since Microsoft Graph API returns them in HTML format. In one execution it processes about 20-30 emails in parallel.
I am getting the following error:
and this is the code: