-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Description
Current behavior
In an air gapped network, running a component or e2e tests using cypress on Firefox using the cypress/included
docker image fails with the following error:
Cypress failed to make a connection to Firefox.
This usually indicates there was a problem opening the Firefox browser.
FetchError: request to https://raw.githubusercontent.com/mozilla/geckodriver/release/Cargo.toml failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (file:///root/.cache/Cypress/14.0.2/Cypress/resources/app/packages/server/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:518:28)
at emitErrorEvent (node:_http_client:101:11)
at TLSSocket.socketErrorListener (node:_http_client:504:5)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
This is likely a regression introduced in release 13.15.1
which started using geckodriver
.
Desired behavior
I expect the test to run in an air gapped network. It should not send any request to the internet.
Test code to reproduce
Any test in Firefox in an air-gapped network.
Cypress Version
14.0.2
Node version
v22.13.1
Operating System
Debian bookworm
Debug Logs
Other
I also attempted to override the environment variables supported by geckodriver to use a local path
GECKODRIVER_VERSION = '0.35.0'
GECKODRIVER_CDNURL = 'file:///path/to/geckodriver/'
But it failed node-fetch
does not support file:
.