cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.02k stars 3.18k forks source link

open mode - updating config which required server restart caused write stream error #28144

Open emilyrohrbough opened 1 year ago

emilyrohrbough commented 1 year ago

Current behavior

The following error is observed using Cypress 13.3.3 in open mode when a configuration option is updated that requires the Cypress server to restart.

Internal error occurred during message handling. Please check your implementation. Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at new NodeError (node:internal/errors:399:5)
    at _write (node:internal/streams/writable:324:11)
    at Writable.write (node:internal/streams/writable:337:10)
    at b.sendFrame (<embedded>:4457:37213)
    at b.send (<embedded>:4457:36247)
    at I.send (<embedded>:4457:48600)
    at <embedded>:2906:102356
    at new Promise (<anonymous>)
    at Object.send (<embedded>:2906:102297)
    at Object.next (<embedded>:2906:98640)
    at async <embedded>:2906:100142
    at async I.<anonymous> (<embedded>:2906:102452) {
  code: 'ERR_STREAM_DESTROYED'
}

https://github.com/cypress-io/cypress/assets/14099737/24972332-42fb-4d21-be61-1907cdbcc768

Desired behavior

No response

Test code to reproduce

Cypress Version

13.3.3

Node version

18.5.0

Operating System

MacOS 12.6.2

Debug Logs

No response

Other

No response

cypress-app-bot commented 6 months ago

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.