Effect CommunityEC
Effect Community3y ago
17 replies
Victor Korzunin

Error in `effect-http` Server Implementation

Hey @Milan. I'm trying to use effect-http , implemented a basic server and running it leads to error:
❯ pnpm tsx ./packages/graphql/src/index.ts
17:56:38 (Fiber #0) INFO  Server listening on :::3000
17:56:43 (Fiber #5) INFO  GET http://localhost:3000/
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error [ERR_STREAM_PUSH_AFTER_EOF]: stream.push() after EOF
    at __node_internal_captureLargerStackTrace (node:internal/errors:484:5)
    at new NodeError (node:internal/errors:393:5)
    at readableAddChunk (node:internal/streams/readable:285:30)
    at Readable.push (node:internal/streams/readable:234:10)
    at node:internal/webstreams/adapters:496:22
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Readable instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ERR_STREAM_PUSH_AFTER_EOF'
}

Node.js v18.12.1
Was this page helpful?