Skip to content

res.writeHead is not a function #1023

@teslanaut

Description

@teslanaut

Was updating ComfyUI when this showed up in Pinokio in the browser. Everything still works fine though.

Pinokio crashed
When: 12/25/2025, 3:27:23 PM
Origin: uncaughtException
Saved at: /home/fractal/pinokio/logs/fatal.json

res.writeHead is not a function

TypeError: res.writeHead is not a function
at ProxyServer. (/opt/Pinokio/resources/app.asar/node_modules/pinokiod/kernel/lproxy.js:56:11)
at ProxyServer.emit (/opt/Pinokio/resources/app.asar/node_modules/eventemitter3/index.js:204:33)
at ClientRequest.onOutgoingError (/opt/Pinokio/resources/app.asar/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js:157:16)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:107:11)
at Socket.socketErrorListener (node:_http_client:574:5)
at Socket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

fatal.json log:

{
"id": "fatal-1766705243404",
"type": "kernel.fatal",
"severity": "fatal",
"title": "Pinokio crashed",
"message": "res.writeHead is not a function",
"stack": "TypeError: res.writeHead is not a function\n at ProxyServer. (/opt/Pinokio/resources/app.asar/node_modules/pinokiod/kernel/lproxy.js:56>
"origin": "uncaughtException",
"timestamp": 1766705243404,
"version": {
"pinokiod": "5.3.0",
"pinokio": "5.3.0"
},
"pid": 24578,
"logPath": "/home/fractal/pinokio/logs/fatal.json"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions