joelgriffith / navalia

A bullet-proof, fast, and reliable headless browser API
https://joelgriffith.github.io/navalia/
GNU General Public License v3.0
957 stars 33 forks source link

Goto failed to load in the timeout specified #73

Open jobergner opened 6 years ago

jobergner commented 6 years ago

This example:

const { Chrome } = require('navalia');
const chrome = new Chrome();

chrome
  .goto('https://amazon.com')
  .type('input', 'Kindle')
  .click('.buy-now')
  .end()
  .then(responses => {
    console.log(responses); // ['https://www.amazon.com/', true, true, true]
  });

causes the following error:


(node:13803) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Goto failed to load in the timeout specified
(node:13803) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

no way to work around it. Can't use navalia at all. Please help!

michaelwills commented 6 years ago

@Java-Jonas we are discussing some of these bits over in #72 .

edparsons commented 6 years ago

I'm having a similar problem with 1.3.0, I've reverted to 1.2.0 and my tests are working again. Mine failed to load http://localhost:2998/ yet all the other browsers and Navalia 1.2.0 work so I don't think it is the server.

gary5wang commented 6 years ago

I'm having the same issue, even with hitting www.google.com. I tried what edparsons said and reverting to 1.2.0 worked. Thanks