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
WebSocket is already in CLOSING or CLOSED state. Randomly Facing this error and hence failing the Cypress Tests #7180
Comments
Please provide a reproducible test suite to show the issue - including the Unfortunately we have to close this issue if a way to reproduce this is not provided as there will be no path forward for investigation. |
Sure Jennifer. We are working on the reproducible steps Will share when we find that. Can you give any reference where the random bug has a reproducible steps ? meanwhile,
if (fs.existsSync) then read read and fill the file content |
Most likely, this regex needs to be updated to handle "WebSocket is already in CLOSING or CLOSED state" as well. We want to retry on these errors instead of failing.
|
Having same issue |
The code for this is done in cypress-io/cypress#7981, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When we execute our cypress test, it randomly throws the below error
As per our flow, if out automation steps gets pass we execute a cypress Tasks to update the result file for the TestCase status (Pass or Fail). In that Tasks there isn't any database connection. Its just simply uses node command to update a file in fixture folder to set status as pass or fail.
Randomly, when this task is executed the cypress hangs there and end up in a error with WebSocket is already in Closing or Closed State+
We found that after upgrading to latest version 4.4.0 and more It runs very slowly and when executed cy.task() it stucks there randomly. If we revert back to 3.4.1 then its stable. Working normally.
Desired behavior:
The tests should not hold and throws any error like Websocket
Test code to reproduce
Random failure. We are trying to reproduce the steps. But didn't knew how.
#6945
#6458
We have gone through the above issues but didn't get success. Also, have read other socket problem but got fail on each.
Versions
After 3.4.1 to latest version 4.5.0
Operating System : Windows 10
Browser: Chrome, Electron
The text was updated successfully, but these errors were encountered: