Coder Social home page Coder Social logo

Comments (6)

handcraftedbits avatar handcraftedbits commented on September 1, 2024

Are you using the netshot Docker container?

from netshot.

kerray avatar kerray commented on September 1, 2024

There's a single instance of "handcraftedbits/netshot" started through Kubernetes - I hope that's the same thing

from netshot.

kerray avatar kerray commented on September 1, 2024

it seems to me after playing with this some more that there is some kind of internal timeout on some of the executed functions - the browser is waiting to read the page, but the function waiting on it times out, which is why standalone Electroshot doesn't have this problem - is that possible?

EDIT: could it be https://stackoverflow.com/questions/23874954/is-there-a-default-timeout-in-nodejs-for-http-request ?

from netshot.

kerray avatar kerray commented on September 1, 2024

I've solved the timeout problem and made some changes in order to correctly run Netshot under Windows - https://github.com/kerray/netshot/commit/aa51354e1d10c7bbec457b7dff96b8b96d1fc596, https://github.com/kerray/netshot/commit/e09ab5ad5753f745b6496901cd0eb141d603c80f and https://github.com/kerray/netshot/commit/2c7bdc88dfbf483e0efe998d78e980dac0f80cca

There's another problem however, when the page screenshot is large, once the PNG filesize is slightly over 1 MB, the screenshot doesn't get saved. But only in container - directly it works just fine, on the same set of parameters.

I've connected to the container and ran Electroshot manually with the same url and params that cause problems, and it gets saved correctly - however I have no idea what to look for, when it's Electroshot itself that does the saving (unless I'm mistaken?)

from netshot.

handcraftedbits avatar handcraftedbits commented on September 1, 2024

Hi @kerray, thanks for looking into these issues. Can you make pull requests?

I'll see what's happening with the 1MB image.

from netshot.

kerray avatar kerray commented on September 1, 2024

There you go, and thanks for looking into these issues.

from netshot.

Related Issues (4)

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.