brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 286 forks source link

Disallowed key characters in global data. #247

Open llgdd opened 4 years ago

llgdd commented 4 years ago

I have the following code. Everything runs pretty smooth, except for one thing: shots, produced by the lib are transparent and contain nothing but Disallowed key characters in global data. at the top. Does anybody have an idea what it means and what causes it?

var options = {
   screenSize: { width: 960, height: 1024 },
   shotSize:   { width: 960, height: 'all'}
}
webshot(url, filePath, options, function(err) {
   if (err) throw err
   console.log("Webshot success!")
   sendShot()
})