|
Rank: Member Groups: Member
Joined: 10/29/2019 Posts: 13
|
Hi there,
I am testing the new release before upgrade the production and I am getting this error: "The request was canceled." for the below code snippet:
PdfDocument doc1 = new PdfDocument(); string url = $"https://profile.id.com.au/monash"; HtmlToPdf.ConvertUrl(url, doc1);
The stack trace for the error is:
" at EO.Internal.oe.a(ab4 A_0, String A_1, String A_2, String A_3, Int32 A_4, Int32 A_5, String A_6, Boolean A_7)\r\n at EO.Internal.oe.b(ab4 A_0, String A_1, String A_2, String A_3, Int32 A_4, Int32 A_5, String A_6, Boolean A_7)\r\n at EO.Pdf.HtmlToPdfSession.a(ab4 A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, String A_5, Boolean A_6)\r\n at EO.Pdf.HtmlToPdf.b.a()\r\n at EO.Internal.aka.a[a](ao0 A_0)\r\n at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options)\r\n at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc)\r\n at EO2020Test.Program.Main(String[] args) in C:\\Users\\ahmad.IDC\\source\\repos\\EO2020Test\\Program.cs:line 24"
Any idea?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
We have confirmed this to be an issue. This will be fixed in our next build and we will post here again once the new build is posted.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/29/2019 Posts: 13
|
Thanks for confirming! Now, as we are blocked on v20 for this issue and we are blocked on v19 for the issue of "child process is not ready" issue, could you please update us when is the next build?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
The new build should be out later this week.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is just to let you know that the new build is out (20.0.33). You can download it from our download page. Please take a look and let us know how it goes.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/29/2019 Posts: 13
|
This issue has been fixed in the new version (20.0.33). However, the original issue of "child process is not ready", that was logged in a different support ticket, still occurs.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great. Thanks for confirming the fix for this issue. We are working on the other issue and we will update there as soon as we find anything.
|
|
Rank: Newbie Groups: Member
Joined: 8/18/2023 Posts: 2
|
Hello,
I've read this tread and I think we've a similar problem.
So, when I try to convert html to PDF, using both ConvertUrl and ConvertHtml, I get the same error 'The request was canceled'.
This only happens when I run the webApp inside a docker container.
However, when I test the same webApp without any containers, then it runs successfully .
We're using version 23.2.65.0
Any idea? Thanks, Dylan.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Dylan,
What OS image does your docker container use?
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/18/2023 Posts: 2
|
Hi,
The container is running on a windows server 2022. And the docker image's using windows server core: windowsservercore-ltsc2022
Thanks, Dylan.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Please check if you have fonts installed in your server core container. See here for more discussion about this issue: https://www.essentialobjects.com/forum/postsm48539_Converting-HTML-to-PDF-fails-when-running-in-docker-container-Win-2019.aspxYou can find more information on how to install fonts to your container here: https://techcommunity.microsoft.com/t5/itops-talk-blog/adding-optional-font-packages-to-windows-containers/ba-p/3559761Please let us know if this works for you. Thanks!
|
|