Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nightmare.js error code -3

I'm using nightmare to do few commands on a website. My code has few nightmare instances nested each other so I can handle the asynchronous call one by one.

Sometimes my script runs successfull, but there are times that somehow nightmare throws an error. error code: -3.

I've search the Documentation on their github as well on the npm website, but I dont see anything related to error codes.

Does anyone knows what that error means?

like image 392
Jose Bernhardt Avatar asked Jan 21 '26 17:01

Jose Bernhardt


1 Answers

Does anyone knows what that error means?

Those error codes come from Chromium, happening when there's an issue with the underlying navigation. -3 is the navigation abort error code, which Electron (what Nightmare is based on) bubbles up.

My code has few nightmare instances nested each other so I can handle the asynchronous call one by one.

Asynchronous operations with Nightmare are kind of tricky. This is getting somewhat offtopic, but can you provide a sample of your source? I suspect you may have an issue with implementation.

like image 159
Ross Avatar answered Jan 24 '26 15:01

Ross



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!