Skip to content

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

Closed
@jennifer-shehane

Description

@jennifer-shehane

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions