metarhia/impress

HEADERS_SENT on node 20, server static from empty folder

tshemsedinov opened this issue · 0 comments

Impress and Node.js versions

node.js 20.4.0

Platform

No response

Describe the bug

uncaughtException: Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
  new NodeError (node:internal/errors:405:5)
  ServerResponse.writeHead (node:_http_server:345:11)
  HttpTransport.write (/node_modules/metacom/lib/transport.js:139:9)
  HttpTransport.send (/node_modules/metacom/lib/transport.js:112:10)
  HttpTransport.error (/node_modules/metacom/lib/transport.js:107:10)
  ReadStream.<anonymous> (/node_modules/impress/lib/static.js:78:19)
  ReadStream.emit (node:events:512:28)
  emitErrorNT (node:internal/streams/destroy:151:8)
  emitErrorCloseNT (node:internal/streams/destroy:116:3)
  process.processTicksAndRejections (node:internal/process/task_queues:82:21)

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Additional context

No response