Cypress testing has stopped working
See original GitHub issueCurrent 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)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11 (3 by maintainers)
Top GitHub Comments
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.0This 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.