Sometimes, the development server stops responding
See original GitHub issueDescription
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.
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:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)
I had a similar issue, which was partly fixed in gatsby@2.27.2. Have you tried updating your deps?