write EPIPE error randomly popping up on shopify CLI

Topic summary

A developer is experiencing an intermittent write EPIPE error when reloading their Shopify development app, forcing frequent server restarts.

Error Details:

  • Error occurs randomly during app reload
  • Full stack trace shows the error originates from Node.js internal stream operations
  • Affects the Socket write process in the development environment

Current Status:

  • Issue remains unresolved
  • No solutions or workarounds have been provided yet
  • The developer is seeking help to prevent these random crashes and eliminate the need for constant server restarts
Summarized with AI on November 12. AI used: claude-sonnet-4-5-20250929.

This error pops up randomly when i reload my development app and I have to restart the server again and again.

Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:164:15)
at writeGeneric (node:internal/stream_base_commons:155:3)
at Socket._writeGeneric (node:net:795:11)
at Socket._write (node:net:807:8)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at Socket.Writable.write (node:internal/streams/writable:334:10)
at IncomingMessage.ondata (node:internal/streams/readable:754:22)
at IncomingMessage.emit (node:events:390:28)
at IncomingMessage.emit (node:domain:475:12)

2 Likes