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.

ESOCKETTIMEDOUT error

See original GitHub issue

The issue is occurring on my colleague’s machine who is offshore (India time). I am submitting this issue on his behalf. Due to the time discrepancy, responses may be slow. However this is a blocking issue for our team since we are trying to convert to using Cypress and TDD as a team thus we need the environment to be working on all machines before beginning our new work. I’ve googled this issue and tried diagnosing/solving it but so far no luck.

Additional Info (images, stack traces, etc)

Console was cleared
cypress_runner.js:136628 Command:   visit
cypress_runner.js:136628 Error:     CypressError: cy.visit() failed trying to load:

http://localhost:9000/

We attempted to make an http request to this URL but the request failed without a response.

We received this error at the network level:

  > Error: ESOCKETTIMEDOUT

Common situations why this would fail:
  - you don't have internet access
  - you forgot to run / boot your web server
  - your web server isn't accessible
  - you have weird network configuration settings on your computer

The stack trace for this error is:

Error: ESOCKETTIMEDOUT
    at ClientRequest.<anonymous> (C:\Data\Testing\cypress\Cypress\resources\app\packages\server\node_modules\request\request.js:778:19)
    at ClientRequest.g (events.js:286:16)
    at emitNone (events.js:86:13)
    at ClientRequest.emit (events.js:185:7)
    at Socket.emitTimeout (_http_client.js:614:10)
    at Socket.g (events.js:286:16)
    at emitNone (events.js:86:13)
    at Socket.emit (events.js:185:7)
    at Socket._onTimeout (net.js:334:8)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)


Because this error occurred during a 'before each' hook we are skipping the remaining tests in the current suite: 'Enter BAC Details Wizard Forms'
cypress_runner.js:136628 Snapshot:  The snapshot is missing. Displaying current state of the DOM.

image

  • Operating System: Windows 7
  • Cypress Version: 1.0.3
  • Browser Version: 62

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

27reactions
thomasleveilcommented, Feb 25, 2020

For me I had a webserver which failed if it could not find the “Accept-Encoding” header.

Fixed with :

cy.visit(url, {
  headers: {
    "Accept-Encoding": "gzip, deflate"
  }
})
7reactions
leonfscommented, Aug 21, 2019

We’ve fixed the problem by adding a request header (Connection: "Keep-Alive") to the visit command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js request module getting ETIMEDOUT and ...
I'm noticing alot of ETIMEDOUT and ESOCKETTIMEDOUT errors although the links are reachable and respond fairly quickly using chrome.
Read more >
What does ESOCKETTIMEDOUT mean? - Troubleshooting
It'd be good to a) expand the ESOCKETTIMEDOUT error message to indicate webhook destination did not complete in 5 seconds
Read more >
Fixing Yarn ESOCKETTIMEDOUT Error During Discourse ...
Here's what is going wrong. Yarn has a default timeout that is fine if you are using the minimum recommended for Discourse, but...
Read more >
ESOCKETTIMEDOUT error
ESOCKETTIMEDOUT error. My company is currently using an Automate.io bot with our Calendly integration so the appropriate Salesforce records can ...
Read more >
Esockettimedout error - Questions
Am getting ESOCKETTIMEDOUT Error when I try to connect to Rinkeby or ropsten from my local truffle project. How do I resolve this?...
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 Hashnode Post

No results found