Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECONNRESET #28560

Closed
SusanneEmineo opened this issue Dec 20, 2023 · 3 comments
Closed

ECONNRESET #28560

SusanneEmineo opened this issue Dec 20, 2023 · 3 comments

Comments

@SusanneEmineo
Copy link

Current behavior

No matter which browser I'm using, I'm running into following error:

read ECONNRESET
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)

Currently die Windows Defender Firewall is turned off.

Desired behavior

run tests

Test code to reproduce

I don't even reach any test to run, unfortunately.

Cypress Version

13.6.1

Node version

v20.10.0

Operating System

Windows 10 Enterprise 1000.19053.1000.0

Debug Logs

2023-12-20T13:38:20.924Z cypress:network:cors Parsed URL { port: '4200', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' }
2023-12-20T13:38:20.924Z cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:4200', strategy: 'http', fileServer: null, domainName: 'localhost', props: { port: '4200', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } } for: http://localhost:4200
2023-12-20T13:38:20.925Z cypress:server:open_project launching browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '114.0.5735.289', path: '', majorVersion: 114, isHeadless: true, isHeaded: false }, spec: cypress\e2e\bvtax\0_global_search.cy.js
2023-12-20T13:38:20.925Z cypress:server:browsers browsers.kill called with no active instance
2023-12-20T13:38:20.926Z cypress:server:browsers getBrowserLauncher { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '114.0.5735.289', path: '', majorVersion: 114, isHeadless: true, isHeaded: false } }
2023-12-20T13:38:20.927Z cypress:server:browsers opening browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '114.0.5735.289', path: '', majorVersion: 114, isHeadless: true, isHeaded: false }
2023-12-20T13:38:20.928Z cypress:server:browsers:electron open { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '114.0.5735.289', path: '', majorVersion: 114, isHeadless: true, isHeaded: false }, url: 'http://localhost:4200/__/#/specs/runner?file=cypress\\e2e\\bvtax\\0_global_search.cy.js' }
2023-12-20T13:38:20.928Z cypress:server:saved_state noop saved state
2023-12-20T13:38:20.928Z cypress:server:browsers:electron received saved state {}
2023-12-20T13:38:20.931Z cypress:server:browsers:electron browser window options { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '114.0.5735.289', path: '', majorVersion: 114, isHeadless: true, isHeaded: false }, url: 'http://localhost:4200/__/#/specs/runner?file=cypress\\e2e\\bvtax\\0_global_search.cy.js', browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '120.0.6099.110', path: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe', minSupportedVersion: 64, majorVersion: '120' }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', version: '120.0.2210.77', path: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe', minSupportedVersion: 79, majorVersion: '120' }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '114.0.5735.289', path: '', majorVersion: 114 } ], userAgent: null, proxyUrl: 'http://localhost:53069', proxyServer: 'http://localhost:53069', socketIoRoute: '/__socket', chromeWebSecurity: true, isTextTerminal: true, downloadsFolder: 'C:\\workspace\\bvtax\\bvtax-web\\cypress\\downloads', experimentalModifyObstructiveThirdPartyCode: false, experimentalWebKitSupport: false, protocolManager: undefined, projectRoot: 'C:\\workspace\\bvtax\\bvtax-web', shouldLaunchNewTab: false, videoApi: undefined, automationMiddleware: { onBeforeRequest: [Function: onBeforeRequest], onAfterResponse: [Function: onAfterResponse] }, x: null, y: null, width: 1280, height: 720, minWidth: 100, minHeight: 100, devTools: false, contextMenu: true, partition: 'persist:run-24744', trackState: { width: 'browserWidth', height: 'browserHeight', x: 'browserX', y: 'browserY', devTools: 'isBrowserDevToolsOpen' }, webPreferences: { sandbox: true, partition: null, webSecurity: true, nodeIntegration: false, backgroundThrottling: false }, show: false, resizable: false, frame: true, recordFrameRate: null }
2023-12-20T13:38:20.931Z cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'before:browser:launch', isRegistered: false }
2023-12-20T13:38:20.931Z cypress:server:browsers:electron launching browser window to url: http://localhost:4200/__/#/specs/runner?file=cypress\e2e\bvtax\0_global_search.cy.js
2023-12-20T13:38:21.150Z cypress:network:connect successfully connected { opts: { host: '127.0.0.1', port: '53065', getDelayMsForRetry: [Function: getDelayMsForRetry] }, iteration: 0 }
read ECONNRESET
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
2023-12-20T13:38:21.163Z cypress:server:browsers:cri-client connecting { connected: false, target: 'ws://127.0.0.1:53065/devtools/browser/b15d990e-65ae-4609-be3e-86c5531f74d6' }
2023-12-20T13:38:21.196Z cypress:server:browsers:cri-client connected { connected: true, target: 'ws://127.0.0.1:53065/devtools/browser/b15d990e-65ae-4609-be3e-86c5531f74d6' }
2023-12-20T13:38:21.199Z cypress:server:browsers:cri-client registering CDP on event { eventName: 'Target.attachedToTarget' }
2023-12-20T13:38:21.200Z cypress:server:browsers:cri-client registering CDP on event { eventName: 'Target.targetDestroyed' }
2023-12-20T13:38:21.200Z cypress:server:browsers:cri-client registering CDP on event { eventName: 'Inspector.targetReloadedAfterCrash' }
2023-12-20T13:38:21.205Z cypress:server:browsers:browser-cri-client Target.attachedToTarget { targetId: '3CD3F27B5AB09434325EBEA580F9C5BC', type: 'page', title: 'about:blank', url: 'about:blank', attached: true, canAccessOpener: false, browserContextId: 'B4D009B737FAFD1D1FCC7AE7B5CA99FA' }
2023-12-20T13:38:21.205Z cypress:server:browsers:browser-cri-client Not waiting for debugger (id: 3CD3F27B5AB09434325EBEA580F9C5BC)
2023-12-20T13:38:21.205Z cypress:server:browsers:browser-cri-client Attaching to target url about:blank
2023-12-20T13:38:21.207Z cypress:server:browsers:cri-client connecting { connected: false, target: '3CD3F27B5AB09434325EBEA580F9C5BC' }
2023-12-20T13:38:21.212Z cypress:server:cloud:api request to url: POST https://api.cypress.io/exceptions with params: {"body":{"err":{"name":"Error","message":"read ECONNRESET","stack":"Error: read ECONNRESET\n    at TCP.onStreamRead (node:internal<stripped-path>stream_base_commons:217:20)"},"version":"13.6.1","osName":"win32","osVersion":"10.0.19045","osCpus":[{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":275812,"nice":0,"sys":201062,"idle":261203,"irq":9906}},{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":267250,"nice":0,"sys":169515,"idle":300859,"irq":4046}},{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":253375,"nice":0,"sys":247953,"idle":236296,"irq":2609}},{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":294843,"nice":0,"sys":163531,"idle":279250,"irq":3171}},{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":280250,"nice":0,"sys":222031,"idle":235343,"irq":3812}},{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":282921,"nice":0,"sys":223171,"idle":231531,"irq":3218}},{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":318484,"nice":0,"sys":176234,"idle":242906,"irq":3046}},{"model":"11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz","speed":2803,"times":{"user":320437,"nice":0,"sys":156062,"idle":261125,"irq":2484}}],"osMemory":{"free":10101411840,"total":34065145856}},"headers":{"x-os-name":"win32","x-cypress-version":"13.6.1"}} and token: undefined
2023-12-20T13:38:21.225Z cypress:network:agent addRequest called { isHttps: true, href: 'https://api.cypress.io/exceptions' }
2023-12-20T13:38:21.225Z cypress:network:connect beginning getAddress { hostname: 'api.cypress.io', port: 443 }
2023-12-20T13:38:21.238Z cypress:server:browsers browsers.kill called with no active instance
2023-12-20T13:38:21.238Z cypress:proxy:http:util:prerequests metrics: { browserPreRequestsReceived: 0, proxyRequestsReceived: 0, immediatelyMatchedRequests: 0, unmatchedRequests: 0, unmatchedPreRequests: 0 }
2023-12-20T13:38:21.243Z cypress:network:connect got addresses { hostname: 'api.cypress.io', port: 443, addresses: [ { address: '104.22.11.239', family: 4 }, { address: '104.22.10.239', family: 4 }, { address: '172.67.25.250', family: 4 } ] }
2023-12-20T13:38:21.245Z cypress:server:browsers:browser-cri-client Target.targetDestroyed { event: { targetId: '3CD3F27B5AB09434325EBEA580F9C5BC' }, closing: false, closed: false, resettingBrowserTargets: false }
2023-12-20T13:38:21.363Z cypress:network:agent got family { family: 4, href: 'https://api.cypress.io/exceptions' }
2023-12-20T13:38:21.370Z cypress:server:browsers:browser-cri-client error finding browser target, maybe retrying { delay: 100, err: Error: Unexpected server response: 500 at ClientRequest.<anonymous> (<embedded>:2466:562495) at ClientRequest.emit (node:events:513:28) at HTTPParser.parserOnIncomingClient (node:_http_client:701:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) at Socket.socketOnData (node:_http_client:542:22) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) at Readable.push (node:internal/streams/readable:234:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) }
2023-12-20T13:38:21.522Z cypress:cli child event fired { event: 'exit', code: 1, signal: null }
2023-12-20T13:38:21.523Z cypress:cli child event fired { event: 'close', code: 1, signal: null }

Other

No response

@MikeMcC399
Copy link
Contributor

@SusanneEmineo
Copy link
Author

Thanks, Mike. This error has been around for some years in the meantime. Often it is solved by upgrades to a more recent version of either software involved or turning off the firewall, or using only a specific browser. Unfortunately nothing helps for me so far.

@SusanneEmineo
Copy link
Author

OMG, I got it working!
I downloaded each and every supported browser (https://docs.cypress.io/guides/guides/launching-browsers), tried them all, and in the end the only one which was working for me is the WebKit (Experimental). I'm very happy to move on, and write tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants