Skip to content

Phantom Process died #139

@toddwprice

Description

@toddwprice

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions