Git Product home page Git Product logo

Comments (8)

kblok avatar kblok commented on July 21, 2024

@AleksandrsJakovlevsVisma Are you willing to test some custom build to confirm the fix?

from puppeteer-sharp.

AleksandrsJakovlevsVisma avatar AleksandrsJakovlevsVisma commented on July 21, 2024

@kblok Sorry for the delay, I was on vacation.

Yes, I don't mind trying a custom build

from puppeteer-sharp.

kblok avatar kblok commented on July 21, 2024

@AleksandrsJakovlevsVisma I'm exposing the TaskHelper timeout here. Can you see if increasing the timeout there helps?

That's an static class that will affect the entire library.

from puppeteer-sharp.

AleksandrsJakovlevsVisma avatar AleksandrsJakovlevsVisma commented on July 21, 2024

@kblok I did the following:

  1. Downloaded that branch as zip and referenced the csproj in my proj
  2. I also did one additional change seen below
    image
  3. In my code I am setting DefaultTimeout to 30 secs
  4. During testing I am no longer seeing TargetClosedException, but now I am getting 504 gate-way timeouts from the API that is using Puppeteer

from puppeteer-sharp.

kblok avatar kblok commented on July 21, 2024

@kblok I did the following:

  1. I also did one additional change seen below

Good catch

  1. During testing I am no longer seeing TargetClosedException, but now I am getting 504 gate-way timeouts from the API that is using Puppeteer

That would be something on your side right?

from puppeteer-sharp.

AleksandrsJakovlevsVisma avatar AleksandrsJakovlevsVisma commented on July 21, 2024

@kblok

Thank you for helping out with this one.

It is the problem on our side, yes. The PDF conversion on average takes 6 seconds, but the request times out after a minute. 200 requests with a max count of simultaneously opened pages = 10 is not enough to make sure each of 200 finishes in a minute. Do you have any advice on how to speed up a simple HTML to PDF conversion? Perhaps there are some magic LaunchOptions args?

In any case, can we expect the configurable default timeout released in the near future?

from puppeteer-sharp.

kblok avatar kblok commented on July 21, 2024

@kblok

Thank you for helping out with this one.

It is the problem on our side, yes. The PDF conversion on average takes 6 seconds, but the request times out after a minute. 200 requests with a max count of simultaneously opened pages = 10 is not enough to make sure each of 200 finishes in a minute. Do you have any advice on how to speed up a simple HTML to PDF conversion? Perhaps there are some magic LaunchOptions args?

PDF generate is quite resource intensive. If you look at the code, most of the time is on the browser side.

In any case, can we expect the configurable default timeout released in the near future?

I can ship it today :)

from puppeteer-sharp.

AleksandrsJakovlevsVisma avatar AleksandrsJakovlevsVisma commented on July 21, 2024

@kblok

I can ship it today :)

Nice, we will look forward to it, whenever you'll have the time :)

from puppeteer-sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.