Open adriantx opened 2 years ago
I am using this library for .net core andrei-m-code/net-core-html-to-image in my application, locally it works fine.
But when deploying to AWS Lambda by using this build as Lambda Layer hwkhtmltox-0.12.6-4.amazonlinux2_lambda.zip I get this error: wkhtmltoimage does not appear to be installed on this linux system according to which command; go to https://wkhtmltopdf.org/downloads.html when the library calls this lines of code https://github.com/andrei-m-code/net-core-html-to-image/blob/master/CoreHtmlToImage/HtmlConverter.cs#L41-L63
wkhtmltoimage does not appear to be installed on this linux system according to which command; go to https://wkhtmltopdf.org/downloads.html
Tried to provide those environment libraries:
FONTCONFIG_PATH = /opt/fonts PATH = $PATH:/opt/bin LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/opt/lib
But setting LD_LIBRARY_PATH causes another error which is:
/var/runtime/bootstrap: error while loading shared libraries: liblambdaio.so: cannot open shared object file: No such file or directory
Can someone advise ? Did I miss any steps ? Should I do anything else besides adding the Layer mentioned above to the Lambda function ?
@adriantx were you able to investigate this? I don't use the AWS Lambda setup, it was contributed by @deniszatsepin in #77 :man_shrugging:
I am using this library for .net core andrei-m-code/net-core-html-to-image in my application, locally it works fine.
But when deploying to AWS Lambda by using this build as Lambda Layer hwkhtmltox-0.12.6-4.amazonlinux2_lambda.zip I get this error:
wkhtmltoimage does not appear to be installed on this linux system according to which command; go to https://wkhtmltopdf.org/downloads.html
when the library calls this lines of code https://github.com/andrei-m-code/net-core-html-to-image/blob/master/CoreHtmlToImage/HtmlConverter.cs#L41-L63Tried to provide those environment libraries:
But setting LD_LIBRARY_PATH causes another error which is:
Can someone advise ? Did I miss any steps ? Should I do anything else besides adding the Layer mentioned above to the Lambda function ?