socket.io-cluster-adapter icon indicating copy to clipboard operation
socket.io-cluster-adapter copied to clipboard

Error: #<Object> could not be cloned

Open starci183 opened this issue 1 year ago • 0 comments

Error throws when call fetchSockets

node:internal/child_process/serialization:109
    ser.writeValue(message);
        ^

Error: #<Object> could not be cloned.
    at writeChannelMessage (node:internal/child_process/serialization:109:9)
    at target._send (node:internal/child_process:851:17)
    at target.send (node:internal/child_process:751:19)
    at ClusterAdapter.publish (C:\Repositories\cifarm-containers\src\io\adapters\cluster\cluster.raw.ts:303:17)
    at ClusterAdapter.onMessage (C:\Repositories\cifarm-containers\src\io\adapters\cluster\cluster.raw.ts:209:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Node.js v23.3.0
Worker 28172 died

As i check from code, it is trigger when it call this function

process.send(message, null, { swallowErrors: true }, ignoreError)

I am using window 11, node 23.

starci183 avatar Jan 15 '25 08:01 starci183