swarm-cli icon indicating copy to clipboard operation
swarm-cli copied to clipboard

`swarm-cli status -q | head -n 1 | grep "^OK"` throws `Error: write EPIPE`

Open Cafe137 opened this issue 3 years ago • 0 comments

10:46:16 swarm-cli 0 s status -q | head -n 1 | grep "^OK"        
OK - Bee API Connection
node:events:368
      throw er; // Unhandled 'error' event
      ^

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:780:11)
    at Socket._write (node:net:792: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 console.value (node:internal/console/constructor:289:16)
    at console.log (node:internal/console/constructor:363:26)
    at CommandLog.log [as quiet] (/Users/aron/Code/swarm-cli/dist/index.js:91848:13)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

Cafe137 avatar Nov 16 '21 09:11 Cafe137