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.

Error: UNHANDLED REJECTION write EPIPE

See original GitHub issue

Description

Hello everyone!

I’m getting this error almost every time I shut down local server.

error UNHANDLED REJECTION write EPIPE


  Error: write EPIPE
  
  - child_process.js:806 ChildProcess.target._send
    internal/child_process.js:806:20
  
  - child_process.js:676 ChildProcess.send
    internal/child_process.js:676:19
  
  - develop.ts:130 ControllableScript.stop
    [ap-investment]/[gatsby]/src/commands/develop.ts:130:20
  
  - develop.ts:500 shutdownServices
    [ap-investment]/[gatsby]/src/commands/develop.ts:500:28
  
  - develop.ts:442 process.<anonymous>
    [ap-investment]/[gatsby]/src/commands/develop.ts:442:11

I’ve tried multiple times

gatsby clean
remove /node_modules and package-lock.json
npm install

but it solves problem only for some time. Don’t know if it is related but when gatsby develop and dev server is running, after some saves, when I click Command + S to save changes, hot reload doesn’t work and project isn’t re-rendering.

Steps to reproduce

Expected result

Shuting down dev server without errors

Actual result

Throwing error mentioned above and hot reload not working.

Environment

  System:
    OS: macOS 10.15.7
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.14.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 86.0.4240.193
    Firefox: 82.0.3
    Safari: 14.0
  npmPackages:
    gatsby: ^2.25.3 => 2.25.4 
    gatsby-alias-imports: ^1.0.6 => 1.0.6 
    gatsby-image: ^2.4.21 => 2.4.21 
    gatsby-plugin-postcss: ^3.0.4 => 3.0.4 
    gatsby-plugin-sass: ^2.4.2 => 2.4.2 
    gatsby-plugin-sharp: ^2.7.1 => 2.7.1 
    gatsby-plugin-tinacms: ^0.32.0 => 0.32.0 
    gatsby-source-filesystem: ^2.4.2 => 2.4.2 
    gatsby-tinacms-git: ^0.32.0 => 0.32.0 
    gatsby-tinacms-json: ^0.32.0 => 0.32.0 
    gatsby-tinacms-remark: ^0.32.1 => 0.32.1 
    gatsby-transformer-remark: ^2.9.2 => 2.9.2 
    gatsby-transformer-sharp: ^2.5.21 => 2.5.21 
  npmGlobalPackages:
    gatsby-cli: 2.12.117
    gatsby: 2.25.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:19
  • Comments:100 (26 by maintainers)

github_iconTop GitHub Comments

13reactions
karlhorkycommented, Jun 29, 2021

confirmed still happens on 3.8.0:

Screen Shot 2021-06-29 at 14 58 00
10reactions
stevepepplecommented, Mar 9, 2022

Thanks @panzacoder. Why is this issue closed though? I don’t believe downgrading is an adequate work around for many who need to use the latest version of Gatsby.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UNHANDLED EXCEPTION write EPIP with Gatsby build
The site builds without errors locally, but when I try to deploy to netlify, it fails with an error msg. “error UNHANDLED EXCEPTION...
Read more >
Error: write EPIPE (ng add @fortawesome/angular ...
My angular version. Angular CLI: 10.0.5. Node: 12.18.3. OS: linux x64. Angular: 10.0.8. After adding angular-fontawesome by command: ng add ...
Read more >
write EPIPE error on generating html to pdf
Hi Team, I'm trying to generate html to pdf using html-pdf npm . Please check below code const invoicePath = path.resolve(path.join(__dirname,
Read more >
[coc.nvim]: Uncaught exception:write EPIPE : r/neovim - Reddit
nvim to enable LSP features for my python requirements. But I am facing the following error: [coc.nvim]: Uncaught exception:write EPIPE. I have tried...
Read more >
v3.10 Release Notes - Gatsby
Depending on the type of queries you use you will see dramatic improvements ... gatsby : Avoid the UNHANDLED REJECTION write EPIPE error...
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