Comments (6)
Are you using the netshot Docker container?
from netshot.
There's a single instance of "handcraftedbits/netshot" started through Kubernetes - I hope that's the same thing
from netshot.
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.
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.
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.
There you go, and thanks for looking into these issues.
from netshot.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netshot.