Getting ECONNRESET in production
- Dominant language
- TypeScript
- Stars
- 908
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Description
Getting ECONNRESET in production
Error
```shell
Error: write ECONNRESET
at afterWriteDispatched (node:internal/stream_base_commons:164:15)
at writevGeneric (node:internal/stream_base_commons:147:3)
at Socket._writeGeneric (node:net:793:11)
at Socket._writev (node:net:802:8)
at doWrite (node:internal/streams/writable:406:12)
at clearBuffer (node:internal/streams/writable:561:5)
at Socket.Writable.uncork (node:internal/streams/writable:348:7)
at connectionCorkNT (node:_http_outgoing:797:8)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -104,
code: 'ECONNRESET',
syscall: 'write',
headerSent: true
```
Code
```javascript
import session from 'koa-session';
app.use(session(app));
```
Contributor guide
Research direction
The report only identifies the koa-session setup in the JavaScript snippet and a production Node.js ECONNRESET stack trace. Start by examining the session middleware integration and reproducing the socket reset in a comparable environment; the issue is complete when the cause is isolated and a verified resolution or clear reproduction guidance is recorded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100