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

CypressError: cy.visit() failed because you are attempting to visit a second unique domain. #600

Closed
justinjdickow opened this issue Aug 24, 2017 · 7 comments · May be fixed by schanne/cypress#5, noahblon/cypress#130, schanne/cypress#65, schanne/cypress#66 or schanne/cypress#68
Labels
type: duplicate This issue or pull request already exists
Milestone

Comments

@justinjdickow
Copy link

justinjdickow commented Aug 24, 2017

The two domains are formatted as

https://sso.something.mydomain.com and
http://qa.someotherthing.mydomain.com.

This to me seems like they are unique subdomains, not unique domains, and it's preventing me from testing my login page.

The error in Cypress sends me to: https://on.cypress.io/cannot-visit-second-unique-domain which references which sends me to https://docs.cypress.io/api/commands/visit.html which has no information about this error.

@brian-mann
Copy link
Member

Likely same issue as this: #380

Cypress fails to parse subdomains in some situations because the rules are quite complex and ever changing. We'd need to update the code in multiple places to be async because the TLD list is quite extensive and couldn't be sent into the browser.

@justinjdickow
Copy link
Author

@brian-mann Do you have a priority on fixing this issue? having multiple level sub domains is quite common, especially in qa/stage environments

@brian-mann
Copy link
Member

It's likely 2-3 dev days of work, and its not as high as several other things. I can't really comment on when it'd get into the pipeline, but I'll note this issue when it gets started.

@justinjdickow
Copy link
Author

Appreciate it

@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Aug 28, 2017
brian-mann added a commit that referenced this issue Feb 4, 2018
…sing tld, handle multiple different subdomains on cy.visit
@brian-mann brian-mann added this to the 1.4.2 milestone Feb 4, 2018
@brian-mann
Copy link
Member

brian-mann commented Feb 5, 2018

Released in 1.4.2.

@vineetkumar1511
Copy link

Any update on this issue ?

@jennifer-shehane
Copy link
Member

@vineetkumar1511 This issue should be resolved in Cypress versions > 1.4.2, if you're experiencing an issue that you think is related, please give us a reproducible example in this issue or open a new issue if unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment