Open snhrdt opened 5 years ago
It doesn't seem to be working at all now. Any updates @lukehorvat
Weird, it's working for me...
@snhrdt Could it be a /tmp
directory permissions thing? Try saving the screenshot somewhere else.
@0x15f Can you elaborate on that? What error message do you see?
The issue for me appears to be when I run without an X display available. By running with DEBUG=* screenshot-tweet https://twitter.com/jack/status/1112459556972564482 x.jpg
I got the error message electron child process exited with code 1: general error - you may need xvfb
. On a desktop computer it worked once I did export DISPLAY=:0.0
. For a headless server it looks like I need to figure out how to apply an xvfb wrapper, such as seen here.
Re-wrote w/puppeteer
and functional on OS X 10.15.4
: https://github.com/lukehorvat/screenshot-tweet/pull/11.
I have a fresh install of the latest Node and NPM with only screenshot-tweet added:
When I try to do a screenshot of a tweet, it does not report an error, but it also does not create the image file:
Could you shed some light on this, please? Thanks!