You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Process explorer shows that JSON passed to phantomjs is cut at & symbol -
"D:\Tests\webshot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe" "D:\Tests\webshot\node_modules\webshot\lib/webshot.phantom.js" "{"windowSize":{"width":1024,"height":768},"shotSize":{"width":"window","height":"window"},"shotOffset":{"left":0,"right":0,"top":0,"bottom":0},"streamType":"png","siteType":"url","quality":75,"cookies":[{"name":"connect.sid","value":"s:PDkhVICmVM5iEBa4uT7SSqX919h76Um_.4s0voVhbO1ZMKJus4lBQHC+ayZX1hkTjt1XEtZJDuDE","domain":"localhost","path":"/"}],"zoomFactor":1,"site":"http://localhost:3000/?script=5a7470bbadf5ae26ccfcc100
This was not a problem in earlier releases when path and site were passed as separate arguments not part of the json.
The text was updated successfully, but these errors were encountered:
On windows phantomjs process is not spawned correctly if url have multiple parameters joined with & -
`var webshot = require('webshot');
webshot('http://localhost:3000/?script=5a7470bbadf5ae26ccfcc100&page=5a7470bbadf5ae26ccfcc0dc',
'./localhost.png', {
"cookies": [{
"name": "connect.sid",
"value": "s:PDkhVICmVM5iEBa4uT7SSqX919h76Um_.4s0voVhbO1ZMKJus4lBQHC+ayZX1hkTjt1XEtZJDuDE",
"domain": "localhost",
"path": "/"
}
]
},
function (err) {
if (err) {
return console.log(err);
}
console.log('OK');
});
`
Process explorer shows that JSON passed to phantomjs is cut at & symbol -
"D:\Tests\webshot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe" "D:\Tests\webshot\node_modules\webshot\lib/webshot.phantom.js" "{"windowSize":{"width":1024,"height":768},"shotSize":{"width":"window","height":"window"},"shotOffset":{"left":0,"right":0,"top":0,"bottom":0},"streamType":"png","siteType":"url","quality":75,"cookies":[{"name":"connect.sid","value":"s:PDkhVICmVM5iEBa4uT7SSqX919h76Um_.4s0voVhbO1ZMKJus4lBQHC+ayZX1hkTjt1XEtZJDuDE","domain":"localhost","path":"/"}],"zoomFactor":1,"site":"http://localhost:3000/?script=5a7470bbadf5ae26ccfcc100
This was not a problem in earlier releases when path and site were passed as separate arguments not part of the json.
The text was updated successfully, but these errors were encountered: