kevva / screenshot-stream

Capture screenshot of a website and return it as a stream
MIT License
236 stars 38 forks source link

Can't screenshot some HTTPS sites #9

Closed sindresorhus closed 10 years ago

sindresorhus commented 10 years ago

Like https://news.layervault.com

Reported on twitter: https://twitter.com/christianboyle/status/523918102803660800

pageres https://news.layervault.com 1000x1000

/Users/sindresorhus/dev/pageres/cli.js:91
                throw err;
                      ^
Error: Couldn't load url: https://news.layervault.com
    at Socket.<anonymous> (/Users/sindresorhus/dev/pageres/node_modules/screenshot-stream/index.js:76:25)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    at emitReadable (_stream_readable.js:422:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)
    at Pipe.onread (net.js:528:21)
kevva commented 10 years ago

Adding --ssl-protocol=any made it work. Should we use that by default?

sindresorhus commented 10 years ago

Yeah, we're only capturing screenshot, so shouldn't matter.

kevva commented 10 years ago

bam!