-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cypress crash with literal IPv6 URL in cy.visit #25950
Comments
For convenience I also added a GitHub workflow to demonstrate: https://github.com/MikeMcC399/http-server-test/actions/workflows/test.yml There is already a debug log posted in the original post. |
Seems like this is a bug with our usage of
It should be possible to fix this in our cypress/packages/network/lib/cors.ts Lines 25 to 30 in 47c787f
In the meantime, would |
Thanks for picking this up! At one point I was trying to use literal IPv6 as a workaround for the wait-on issue. Thanks for the workaround suggestion, which may be helpful for others reading this. At the moment I don't need it, however I wanted to make sure it was reported as a bug. Temporarily replacing the literal IPv6 by something else according to the system being used would work e.g. according to what is defined in |
|
This issue is unresolved in Cypress 12.12.0. |
Thanks very much for your pointer to the source of the problem back a few months ago. Are you still involved in Cypress or did you drop out? |
Hey @MikeMcC399, flotwig is not on the team at the moment and we are not currently prioritizing this issue. |
Likely a good first step for this would be to pull in the updates from the main https://github.com/peerigon/parse-domain repo into https://github.com/cypress-io/parse-domain - or validate whether our commits on parse-domain are even necessary anymore. There are some breaking changes in usage, so the signature will need updating after it's pulled back into Cypress. |
Cypress is at cypress/packages/network/package.json Line 18 in 1a80427
There are no newer v6.0.0 is the first release with ESM-only support instead of CommonJS. v8.0.1 is the latest version. |
Current behavior
Cypress crashes if a literal IPv6 URL is used as parameter for
cy.visit
, for example:causes:
Desired behavior
cy.visit
. They do not cause a problem incy.request
.Test code to reproduce
Repository to reproduce:
clone https://github.com/MikeMcC399/http-server-test
Cypress Version
First reported in
12.7.0
Confirmed still an issue in Cypress
13.7.2
Node version
18.19.0 (and 20.12.1)
Operating System
Ubuntu 22.04
Debug Logs
crash_issue_25950.log
Related issues
The text was updated successfully, but these errors were encountered: