question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress testing has stopped working

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
debonecommented, 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

0reactions
akwasincommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
If you're having an issue during installation of Cypress, try removing the contents of the Cypress cache. This will clear out all installed...
Read more >
How To Fix Cypress Crashing Issue In Windows - YouTube
In this video, we will discuss how to fix the cypress crashing issue.New Selenium Batch Starting ...
Read more >
Cypress tests using chrome have stopped working
We run cypress tests using chrome on one of our Azure DevOps pipelines and it stopped working over the last week. We did...
Read more >
Cypress tests not running - Stack Overflow
The test appears to have timed out after waiting for a full minute. Try checking the response for error, along with the lines...
Read more >
Some UI testing problems and the Cypress way | By: Stefano ...
If you set the timeout to one minute you are going to wait one more minute (60 seconds!!!!) if a single test does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found