fpanaccia / Wkhtmltopdf.NetCore-deprecated

Rotativa + Net Core
The Unlicense
220 stars 94 forks source link

Error running under Linux #49

Closed lndr-ssantos closed 3 years ago

lndr-ssantos commented 3 years ago

When I run the project on Linux I get this error:

System.IO.IOException: Broken pipe
   at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source)
   at System.IO.FileStream.WriteSpan(ReadOnlySpan`1 source)
   at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.WriteLine(String value)
   at Wkhtmltopdf.NetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html)
   at Wkhtmltopdf.NetCore.GeneratePdf.GetPDF(String html)

I've already ran chmod 755 in Rotativa folder. Works fine locally on my PC running Windows

gurustron commented 3 years ago

I bet that you are using .NET 5, so it seems that for now there are not a lot of options here, see :

https://github.com/dotnet/runtime/issues/46469

and linked issues.

gurustron commented 3 years ago

@fpanaccia I have a fix for this in my private fork, I can backport it here today or tomorrow, will you be able to merge it in the near future, please?

lndr-ssantos commented 3 years ago

Thank you @gurustron

farukaf commented 2 years ago

Is this problem fixed?