Giter Site home page Giter Site logo

Comments (5)

maaaaz avatar maaaaz commented on August 22, 2024

Hello,

I don't have any idea, this might be a network issue:

  • could you try with the -s option in webscreenshot in order to force ssl
  • could you try the following command line (adding --debug=true) and paste the result here:
$ phantomjs --debug=true --ignore-ssl-errors true --ssl-protocol any "/home/osintscreenshot/webscreenshot/original/webscreenshot.js" url_capture="http://google.com:80" output_file="
/home/osintscreenshot/webscreenshot/original/screenshots/http_google.com_80.png"

Thanks.

from webscreenshot.

BitSledge avatar BitSledge commented on August 22, 2024

Thanks for the response,

Here is the output:

root@Dark-Web-OSINT:/home/osintscreenshot/webscreenshot# phantomjs --debug=true -s --debug=true "/home/osintscreenshot/webscreenshot/original/webscreenshot.js" url_capture="http://google.
com:80" output_file=/home/osintscreenshot/webscreenshot/original/screenshots/http_google.com_80.png

QXcbConnection: Could not connect to display
PhantomJS has crashed. Please read the bug reporting guide at
http://phantomjs.org/bug-reporting.html and file a bug report.
Aborted (core dumped)

Does this mean it needs an X server or x11 forwarded?
(Currently running on Ubuntu server 16.04)

from webscreenshot.

maaaaz avatar maaaaz commented on August 22, 2024

Indeed it seems to be a trouble related to phantomjs: which version du you use ?
Try with different versions:

If it still does not work, try to look for your error on issues of the phantomjs github repo.

Cheers.

from webscreenshot.

RobinVogel avatar RobinVogel commented on August 22, 2024

I might be here a bit late, but I was running into the same problem.
It does need an X server, and it worked without one by setting the variable DISPLAY with export DISPLAY=":0".

from webscreenshot.

maaaaz avatar maaaaz commented on August 22, 2024

@RobinVogel

Indeed, and from few versions there's a specific option to solve this: https://github.com/maaaaz/webscreenshot/wiki/FAQ#headless-os

from webscreenshot.

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.