Closed rmoriz closed 8 years ago
loads with with 2.3.4, fails with 2.5.1: "failed: { code: 'MODULE_NOT_FOUND' }"
Ah, oops. I think nightmare-inline-download
uses a deprecated Electron module that no longer exists as of Electron 1.x. I'll take a look at this and fix it as soon as I can.
Quick update: I fixed the module include, but it looks like Electron emits a did-fail-load
anytime an attachment is set on the response. Looking into that as time permits.
This behavior stretches back in to the history of Electron (I tested back to 0.35.0), and as such, was most likely broken with Nightmare 2.5.0 when .goto()
was rewritten to fail fast when win.webContents
hit a did-fail-load
. I opened electron/electron#6054 to make sure the behavior is intentional. If so, I'll see if I can lobby for a patch to Nightmare to let aborted requests not be considered full failures.
I should have verified that assertion as while I was on the right track, the above is not completely accurate. I just did some tinkering with Nightmare to see what it would take - I had forgotten there's now a built-in assertion for "page readiness" coming from did-finish-load
. I'll have to think on this because this might (and probably will) have consequences if page readiness can be set from an aborted navigation.
@rmoriz This should be fixed with nightmare 2.5.2 and nightmare-inline-download
0.2.1, which will be up shortly.
Hi,
seems not to work with recent nightmare release. Also tests failing when running against nightmare 2.5.1