webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
621 stars 224 forks source link

When reaching BuildFile it gets stuck #203

Closed ricardo-bazan closed 5 years ago

ricardo-bazan commented 5 years ago

When calling BuildFile: var pdf = new ViewAsPdf("ModelName", model); var fileBytes = pdf.BuildFile(this.ControllerContext); It won't advance, just stays there, there's no timeout exception or any error and the request on google chrome just keep saying Pending and it never ends i just left it for 2 hours, still on status Pending.

First time using this tool, any suggestions are appreciated.

ricardo-bazan commented 5 years ago

Update: Rotativa PDF go through all the scripts, one script returned something i couldn't know what it was and somehow it affected the processs Rotativa.BuildFile the solution was making a second way to do what i needed, so i dont have to add the script that corrupted Rotativa.BuildFile, after that it worked normally.

molekp commented 2 years ago

Hi

I had same problem with stuck after calling Wkhtml Driver. I figured it out why it get stuck, but anyway I think that Rotativa should have some ability to timeout this process.

So I've implement it and create PR https://github.com/webgio/Rotativa/pull/229