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

Cypress testing has stopped working #4157

Closed
mturnwall opened this issue May 7, 2019 · 11 comments
Closed

Cypress testing has stopped working #4157

mturnwall opened this issue May 7, 2019 · 11 comments

Comments

@mturnwall
Copy link

mturnwall commented May 7, 2019

Current behavior:

On my local machine no tests are working at all. This includes the Cypress example tests. The browser opens for the test runner when clicking on a test spec but the browser remains a blank page. If I go onto my personal VPN everything works as expected.

This happens from both running it using the UI runner (cypress open) as well as running in the terminal (cypress run)

The strange thing is everything was running just fine about a month ago. I moved onto different features on the project I'm working on. I came back to working on writing test cases and things just stopped working. I even created a new branch and did a clean install of Cypress

Desired behavior:

Test should run as expected.

Steps to reproduce: (app code and test code)

Just run any example test spec such as viewport.spec.js

Here is some logging. Let me know if you need more logging information:

cypress:server:server Getting remote state: { auth: undefined, props: null, origin: 'http://localhost:51189', strategy: 'file', visiting: undefined, domainName: 'localhost', fileServer: 'http://localhost:51190' } +1s
  cypress:server:proxy handling proxied request { url: '/', proxiedUrl: 'http://mqeaipywpwwawjm/', headers: { host: 'mqeaipywpwwawjm', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3787.0 Safari/537.36', 'accept-encoding': 'gzip, deflate' }, remoteState: { auth: undefined, props: null, origin: 'http://localhost:51189', strategy: 'file', visiting: undefined, domainName: 'localhost', fileServer: 'http://localhost:51190' } } +1ms
  cypress:server:server Getting remote state: { auth: undefined, props: null, origin: 'http://localhost:51189', strategy: 'file', visiting: undefined, domainName: 'localhost', fileServer: 'http://localhost:51190' } +5ms
  cypress:server:proxy handling proxied request { url: '/', proxiedUrl: 'http://falozzfp/', headers: { host: 'falozzfp', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3787.0 Safari/537.36', 'accept-encoding': 'gzip, deflate' }, remoteState: { auth: undefined, props: null, origin: 'http://localhost:51189', strategy: 'file', visiting: undefined, domainName: 'localhost', fileServer: 'http://localhost:51190' } } +1ms
  cypress:server:server Getting remote state: { auth: undefined, props: null, origin: 'http://localhost:51189', strategy: 'file', visiting: undefined, domainName: 'localhost', fileServer: 'http://localhost:51190' } +2ms
  cypress:server:proxy handling proxied request { url: '/', proxiedUrl: 'http://sdaxobfvwrld/', headers: { host: 'sdaxobfvwrld', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3787.0 Safari/537.36', 'accept-encoding': 'gzip, deflate' }, remoteState: { auth: undefined, props: null, origin: 'http://localhost:51189', strategy: 'file', visiting: undefined, domainName: 'localhost', fileServer: 'http://localhost:51190' } } +0ms
  cypress:server:timers queuing timer id 9 after 30000 ms +35ms
  cypress:server:timers queuing timer id 10 after 30000 ms +0ms
  cypress:server:timers child received timer id 9 +1s
  cypress:server:timers child received timer id 10 +0ms
  cypress:server:timers queuing timer id 11 after 30000 ms +1ms
  cypress:server:timers child received timer id 11 +1ms
  cypress:server:timers clearing timer id 9 from queue { '7': { args: [], ms: 2500, cb: [Function: cb] }, '9': { args: [], ms: 30000, cb: [Function] }, '10': { args: [], ms: 30000, cb: [Function] }, '11': { args: [], ms: 30000, cb: [Function] } } +0ms
  cypress:server:proxy received response for { url: 'http://falozzfp/', headers: { 'content-type': 'text/html' }, statusCode: 500, isGzipped: undefined, wantsInjection: false, wantsSecurityRemoved: false } +2ms
  cypress:server:proxy request failed { url: 'http://falozzfp/', status: 500, error: 'Error: getaddrinfo ENOTFOUND falozzfp falozzfp:80\n    at errnoException (dns.js:50:10)\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)\n' } +0ms
HEAD / 500 41.597 ms - -
  cypress:server:timers clearing timer id 10 from queue { '7': { args: [], ms: 2500, cb: [Function: cb] }, '10': { args: [], ms: 30000, cb: [Function] }, '11': { args: [], ms: 30000, cb: [Function] } } +14ms
  cypress:server:proxy received response for { url: 'http://mqeaipywpwwawjm/', headers: { 'content-type': 'text/html' }, statusCode: 500, isGzipped: undefined, wantsInjection: false, wantsSecurityRemoved: false } +0ms
  cypress:server:proxy request failed { url: 'http://mqeaipywpwwawjm/', status: 500, error: 'Error: getaddrinfo ENOTFOUND mqeaipywpwwawjm mqeaipywpwwawjm:80\n    at errnoException (dns.js:50:10)\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)\n' } +0ms
HEAD / 500 61.901 ms - -
  cypress:server:timers clearing timer id 11 from queue { '7': { args: [], ms: 2500, cb: [Function: cb] }, '11': { args: [], ms: 30000, cb: [Function] } } +1ms
  cypress:server:proxy received response for { url: 'http://sdaxobfvwrld/', headers: { 'content-type': 'text/html' }, statusCode: 500, isGzipped: undefined, wantsInjection: false, wantsSecurityRemoved: false } +1ms
  cypress:server:proxy request failed { url: 'http://sdaxobfvwrld/', status: 500, error: 'Error: getaddrinfo ENOTFOUND sdaxobfvwrld sdaxobfvwrld:80\n    at errnoException (dns.js:50:10)\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)\n' } +0ms
HEAD / 500 54.523 ms - -

Versions

OS: MacOS 10.14.4
Cypress: 3.2.0
Chrome: 75.0.3770.18 (Official Build) beta (64-bit)

@mturnwall
Copy link
Author

I've been able to isolate this to my actual machine. I've tried running Cypress on other machines here at work and tests run as expected.

@jennifer-shehane
Copy link
Member

I tried running Cypress on the Chrome version you specified - that works fine for me. I ran it on MacOS 10.13.6, which is different from yours.

These errors look notable:

status: 500, 
error: 'Error: getaddrinfo ENOTFOUND falozzfp falozzfp:80\n    
at errnoException (dns.js:50:10)\n    
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)\n' } +0ms

Are you behind a corporate proxy? Handling proxies will be better as soon as 3.3.0 is released, but you may require a workaround today. See #1469

@mturnwall
Copy link
Author

mturnwall commented May 8, 2019 via email

@mturnwall
Copy link
Author

I logged into the guest account on my mac. Setup Cypress and am getting the same results, tests don't run. I'm not sure what on my machine could be causing it. Would be great if someone else with macOS 10.14.4 could test that Cypress runs correctly.

@Lakitna
Copy link
Contributor

Lakitna commented May 10, 2019

Cypress listens to some environment variables. Could those be the culprit here?

@debone
Copy link

debone commented May 11, 2019

I'm having the same issue, with the blank screen and the __ in the URL. I'm on MacOS 10.14.3 and Cypress 3.1.0

@debone
Copy link

debone commented May 13, 2019

Ok, I got it fixed. I think it was my mistake. I had a global version and a local version. I uninstalled my global and updated the local one to 3.2.0.

@crhoads1024
Copy link

Running OSX 10.14.5 (18F132) - Updated last week. Now cypress DOM before and after tracking is no longer available. Test Runner fires tests properly but no before and after of the actions listed in the app view and no highlighting or clicking representation in the APP View window either. Upgraded to Cypress 3.3.2 and still exhibiting the same behavior.

@satgalley
Copy link

I am using cypress 4.0.2. I am behind the company proxy. all proxies declared in env variables. Still, I get this error.

image

@jennifer-shehane
Copy link
Member

Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen.

@akwasin
Copy link

akwasin commented Oct 22, 2021

This is most likely a network issue and not with Cypress. I'm running into this as well when I'm on my companies network while its working like a charm at home or if I use mobile hotspot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants