Certain pages are causing the "Phantom Process died" error to be raised after 30 seconds. If I use a simple phantomjs script directly, the same page loads just fine, though it takes longer than 30 seconds.
Here's an example:
var driver = require('node-phantom-simple');
var url = 'http://www.ebay.com/itm/Hybrid-VERGE-Accessory-Hard-Silicone-Case-Cover-Gel-Apple-iPhone-5S-SE-/301884820233?var=600695910819';
driver.create(function (err, browser) {
browser.createPage(function (err, page) {
page.open(url, function (err, status) {
if (err) console.log('error', err);
else {
console.log('done');
}
});
});
});
Running the following script with phantomjs myScript.js works fine though:
var page = require('webpage').create();
var url = 'http://www.ebay.com/itm/Hybrid-VERGE-Accessory-Hard-Silicone-Case-Cover-Gel-Apple-iPhone-5S-SE-/301884820233?var=600695910819';
page.open(url', function() {
page.render('ebay.png');
phantom.exit();
});
Is there a default timeout of 30 seconds in one of the underlying calls perhaps?
Certain pages are causing the "Phantom Process died" error to be raised after 30 seconds. If I use a simple phantomjs script directly, the same page loads just fine, though it takes longer than 30 seconds.
Here's an example:
Running the following script with
phantomjs myScript.jsworks fine though:Is there a default timeout of 30 seconds in one of the underlying calls perhaps?