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

SIGABRT: Cannot read properties of undefined (reading 'split') | i.processBrowserPreRequest #28950

Closed
jennifer-shehane opened this issue Feb 15, 2024 · 1 comment · Fixed by #28952

Comments

@jennifer-shehane
Copy link
Member

Current behavior

I ran cypress open with this repo (npm i and cypress open), then clicked E2E tests and Chrome v121. Upon opening the browser, Cypress crashed with the error below. It did not happen the second time I opened Cypress.

Cannot read properties of undefined (reading 'split')
TypeError: Cannot read properties of undefined (reading 'split')
    at <embedded>:4432:32336
    at Map.forEach (<anonymous>)
    at i.processBrowserPreRequest (<embedded>:4432:32254)
    at N.shouldIgnorePendingRequest (<embedded>:4432:42079)
    at N.addPendingBrowserPreRequest (<embedded>:4432:41117)
    at d (<embedded>:4432:40190)
    at _ (<embedded>:4432:36011)
    at _.emit (node:events:513:28)
    at f (<embedded>:4491:55225)
    at onEnd (<embedded>:4491:55769)
    at q (<embedded>:4491:53135)
    at N (<embedded>:4491:53761)
    at ee.<anonymous> (<embedded>:4491:55678)
    at ee.emit (node:events:525:35)
    at ee.onRequestError (<embedded>:2050:100575)
    at ClientRequest.emit (node:events:525:35)
    at Socket.socketErrorListener (node:_http_client:502:9)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
GET /__cypress/runner/fonts/fa-solid-900.woff2 200 1.204 ms - 126828
The Test Runner unexpectedly exited via a exit event with signal SIGABRT

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: darwin-x64 (23.2.0)
Cypress Version: 13.6.4

This seems to be failing within this function within our code, I'm unsure if it would be with the documentUrl

https://github.com/cypress-io/cypress/blob/renovate/cross-fetch-3.x/packages/proxy/lib/http/util/service-worker-manager.ts#L121

Or the url

https://github.com/cypress-io/cypress/blob/renovate/cross-fetch-3.x/packages/proxy/lib/http/util/service-worker-manager.ts#L133

The other split calls have an existence operator to check before calling split.

Desired behavior

No response

Test code to reproduce

this repo (npm i and cypress open) - although I've been unable to reproduce this again.

Cypress Version

13.6.4

Node version

18

Operating System

Mac

Debug Logs

No response

Other

No response

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 20, 2024

Released in 13.6.5.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.6.5, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant