segment-boneyard / nightmare

A high-level browser automation library.
https://open.segment.com
19.55k stars 1.08k forks source link

Navigation Error #1097

Closed sean-hill closed 7 years ago

sean-hill commented 7 years ago

Hey there!

I'm getting a navigation error error with this code:

Example

var Nightmare = require('nightmare')
var nightmare = Nightmare({ show: true })

nightmare.goto('https://customer.xfinity.com/')

Error

{ 
  "message": "navigation error",
  "code": -3,
  "details": "",
  "url": "https://customer.xfinity.com/#/"
}

This error happens probably about 80% of the time, but occasionally it makes it through the command. It seems like Xfinity is doing a bunch of redirects, so maybe that is causing an issue?

pg1671 commented 7 years ago

I have the same navigation error on my own site https://www.mypresences.com/. There are no redirects.

scottweinert commented 7 years ago

+1

casesandberg commented 7 years ago

Are you still having trouble and have you tried 2.10.0? I am going to close this, but feel free to re-open if it's still an issue.

xblanc33 commented 7 years ago

I have the same error with 2.10.0 Can't understand why.

allen1991 commented 3 years ago

it really still happen again and again, sometimes it works, but many time failed, error appear。

sean-hill commented 3 years ago

@allen1991 nightmare is dead. Use something like puppeteer or playwright 😄