andrei-m-code / net-core-html-to-image

.NET Core HTML to Image converter
MIT License
127 stars 54 forks source link

Azure container: Something went wrong. Please check input parameters #24

Open TicketeDigitalReceipts opened 4 years ago

TicketeDigitalReceipts commented 4 years ago

Hi, I am trying to generate an image from HTML string. Locally works well, but when I deploy it to Azure app service it fails on var bytes = converter.FromHtmlString(html, width: 500);

00:00 [Error] Microsoft.AspNetCore.Server.Kestrel 0HM22TGTAKM5U:00000003-Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HM22TGTAKM5U"", Request id ""0HM22TGTAKM5U:00000003"": An unhandled exception was thrown by the application. System.Exception: Something went wrong. Please check input parameters at CoreHtmlToImage.HtmlConverter.FromUrl(String url, Int32 width, ImageFormat format, Int32 quality) at CoreHtmlToImage.HtmlConverter.FromHtmlString(String html, Int32 width, ImageFormat format, Int32 quality)

Please help, thank you!

DBragagnolo commented 7 months ago

Was this fixed? I'm facing the same issue on Azure App Service.