socketio / socket.io-sticky

A simple and performant way to use Socket.IO within a cluster.
https://socket.io
MIT License
43 stars 13 forks source link

TypeError: Cannot convert undefined or null to object #4

Closed varedz closed 3 years ago

varedz commented 3 years ago

**node:internal/async_hooks:399 if (ObjectPrototypeHasOwnProperty(object, async_id_symbol)) { ^

TypeError: Cannot convert undefined or null to object at hasOwnProperty () at getOrSetAsyncId (node:internal/async_hooks:399:7) at Server.connectionListener (node:_http_server:435:5) at Server.emit (node:events:394:28) at process. (/root/schoolcheats/socket/node_modules/@socket.io/sticky/index.js:102:23) at process.emit (node:events:406:35) at emit (node:internal/child_process:920:12) at processTicksAndRejections (node:internal/process/task_queues:84:21)**

image

varedz commented 3 years ago

Whoops, may be a duplicate..

3

darrachequesne commented 3 years ago

Hi! According to the line number in the stack trace ("node_modules/@socket.io/sticky/index.js:102"), you are using version 1.0.0.

This issue should be fixed in version 1.0.1, by this commit. Could you please check?

varedz commented 3 years ago

👍