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.

Sometimes, the development server stops responding

See original GitHub issue

Description

From time to time (and across different projects), my gatsby develop process reloads from code changes, but my local development server stops responding (Error: socket hang up). I have to stop the gatsby develop process and run it again. My hot-reload flow usually works just fine.

image

Steps to reproduce

I still haven’t found what causes it. I strongly believe it’s not related with some specific code modification.

Expected result

I’d want my server to hot reload on my code changes.

Actual result

The server stops (with no error) and I have to restart the gatsby develop process.

Environment

  System:
    OS: macOS 11.1
    CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 88.0.4324.96
    Firefox: 83.0
    Safari: 14.0.2
  npmPackages:
    gatsby: ^2.26.1 => 2.26.1
    gatsby-image: ^2.5.0 => 2.5.0
    gatsby-plugin-google-fonts: ^1.0.1 => 1.0.1
    gatsby-plugin-less: ^4.6.0 => 4.6.0
    gatsby-plugin-linaria: ^2.2.0 => 2.2.0
    gatsby-plugin-manifest: ^2.6.1 => 2.6.1
    gatsby-plugin-no-index: ^1.0.2 => 1.0.2
    gatsby-plugin-offline: ^3.4.0 => 3.4.0
    gatsby-plugin-react-helmet: ^3.4.0 => 3.4.0
    gatsby-plugin-sharp: ^2.8.0 => 2.8.0
    gatsby-plugin-typescript: ^2.10.0 => 2.10.0
    gatsby-source-filesystem: ^2.5.0 => 2.5.0
    gatsby-transformer-sharp: ^2.6.0 => 2.6.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
robertocerdasilvacommented, Jan 25, 2021

I am having this same problem! sometimes it’s really slow to visualize new changes while I’m developing. It just stops responding and I have to restart the “gatsby develop” command. (v2.31.0)

1reaction
tu4mocommented, Jan 25, 2021

I had a similar issue, which was partly fixed in gatsby@2.27.2. Have you tried updating your deps?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How come sometimes Django's development server hangs?
Because it's single-threaded, and you're making a second request to it from server code. Use a multithreaded or multiprocessed web server ...
Read more >
Dev server hangs on code change - Development - TheForeman
Recently (can't be more specific) changes to code will cause the server to become unresponsive. If I pause the debugger I am most...
Read more >
How to the Fix "DNS Server Not Responding" Error - Kinsta®
The first step is to troubleshoot the issue by testing your DNS connections. Fixing this problem might be as simple as switching or...
Read more >
How to Fix "DNS Server Not Responding" Error (11 Methods)
Running into "DNS Server Not Responding" error? Find out the possible causes and 11 easy ways to immediately solve the problem!
Read more >
Apache not responding sometimes - Server Config - SitePoint
I had a problem before with the server seeming to time out, so I put in a Javascript function that would refresh the...
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