Cypress: Cypress will fail wit urls with a domain in the form of "*.local*"

Created on 10 Mar 2017  Â·  15Comments  Â·  Source: cypress-io/cypress

If you try to run Cypress having set up the baseUrl as something like something.localhost or something.localsite it will not run and instead it will bring up a browser screen with a grey background, no command log window

bug

Most helpful comment

Released in 1.4.2.

All 15 comments

Is there any news about this issue ? I'm stuck on this, every testing on localhost fails. Do you have workaround ?

Can you provide details: OS, browser, and most importantly how you run your server at .local ?

Sent from my iPhone

On Dec 20, 2017, at 08:18, Okyne notifications@github.com wrote:

Is there any news about this issue ? I'm stuck on this, every testing on localhost fails. Do you have workaround ?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

We resorted to using a different domain like something.test and using our local hosts file to point it to localhost

@brian-mann looked into this at some point and he said this was related to some code related to cookies and domains, I seem to remember

In my case :
OS: Ubuntu 14.01
Browser: Chrome v62
Server: NGINX
The front-end is served through name.localhost:8000
The API is served through api.name.localhost:8001

As carlos said, the browser's window opens, but instantly, it redirects to a grey background screen without the reporter section.

I also have this problem. In our testing environment we use a domain with 'local'-name in it. As soon we remove the 'local' from the domain name, the tests are working again as @carlos-granados pointed out.

OS: OS X 10.12.6
Browser: Chrome v63
Server: nginx

I believe this issue is the same one related to public suffix parsing here: https://github.com/cypress-io/cypress/issues/802

Also grey screen here, but only when using .localhost
When changing to .local or .dev or whatever there are no issues.

OS: MacOS 10.13.2
Browser: Chrome v63
Server: MampPro 4.2.1

The only difference between my setup and @wulfovitch seem to be the server.
Extra note: we run tests without https.

Same here. I'm just trying out Cypress so it's a very basic HTML site.

OS: MacOS 10.13.2
Server: MampPro 4.2.1
URL: http://cypress.localhost

35161856-5c55fb46-fd39-11e7-8181-667bf2ecf5bb

This PR should fix

I'm working on merging this in now

Released in 1.4.2.

Thanks!

I see a fix is supposed to be released, but I still get the error with anything.localhost. Any advice, please?

@pmatisko Could you open a new issue detailing the exact problem you are encountering as well as the test code?

Was this page helpful?
0 / 5 - 0 ratings