fpanaccia / Wkhtmltopdf.NetCore-deprecated

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

.NET 6 Docker error on GetPDF() #69

Closed Ganit20 closed 2 years ago

Ganit20 commented 2 years ago

System.IO.IOException: Pipe is broken. at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at System.IO.Pipes.PipeStream.CheckWriteOperations() at System.IO.Pipes.PipeStream.Flush() [10:02:34.268 ERR] [Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware] An unhandled exception has occurred while executing the request. at System.IO.StreamWriter.Dispose(Boolean disposing) at System.IO.TextWriter.Dispose() at Wkhtmltopdf.NetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html)

michaelgregson commented 2 years ago

Hi @Ganit20,

I can reproduce this using v3.0.2 when a container is set to have a read only root file system - is this true of your container?

Ganit20 commented 2 years ago

I forgot to close it, but the reason was a bad html style