Error causes webserver to crash
- Dominant language
- JavaScript
- Stars
- 12
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
I'm using: https://github.com/pinheadmz/handout to server a webpage on an HNS domain. However, after a day, the webserver crashes.
here is the output:
```javascript
[debug] (webserver) undefined req: index.html (200)
Server error: Error: aborted
at connResetException (node:internal/errors:704:14)
at abortIncoming (node:_http_server:625:17)
at socketOnClose (node:_http_server:619:3)
at TLSSocket.emit (node:events:525:35)
at node:net:757:14
at Socket.done (node:_tls_wrap:584:7)
at Object.onceWrapper (node:events:628:26)
at Socket.emit (node:events:513:28)
at TCP. (node:net:757:14)
node:events:491
throw er; // Unhandled 'error' event
^
Error: aborted
at connResetException (node:internal/errors:704:14)
at abortIncoming (node:_http_server:625:17)
at socketOnClose (node:_http_server:619:3)
at TLSSocket.emit (node:events:525:35)
at node:net:757:14
at Socket.done (node:_tls_wrap:584:7)
at Object.onceWrapper (node:events:628:26)
at Socket.emit (node:events:513:28)
at TCP. (node:net:757:14)
Emitted 'error' event on Request instance at:
at IncomingMessage. (/home/sentinel/handout/node_modules/bweb/lib/request.js:64:12)
at IncomingMessage.emit (node:events:525:35)
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) {
code: 'ECONNRESET'
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the stack trace at node_modules/bweb/lib/request.js:64 and reproduce the reported long-running webserver failure using the provided ECONNRESET output. Trace how the aborted request error is emitted and determine what behavior should prevent the server process from crashing; done means the failure is handled without an unhandled error event.
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
- 30/100