Report this

What is the reason for this report?

Webshot does not work on DigitalOcean

Posted on December 13, 2017

What I did:

var webshot = require('webshot');
 
webshot('google.com', 'google.png', function(err) {
  // screenshot now saved to google.png 
});

What didn’t work: The screenshot was not saved. I tried it on Linux Mint and it worked perfectly but when it comes to using DigitalOcean it did not. Any help will be appreciated.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

“Does not work” is useless. Give us more information. Did you install the requirements?

I did the same steps on my local, did npm install webshot and ran the script, the screenshot was saved in the same path as the script. However on DigitalOcean, I did exactly the same thing. After I ran the script, I did an ls to show the files but I could not find google.png.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.