You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Error: Could not encode" when set mode "development" #48
Error: Could not encode
at _encode (/home/express/node_modules/notepack.io/lib/encode.js:256:13)
at _encode (/home/express/node_modules/notepack.io/lib/encode.js:162:19)
at _encode (/home/express/node_modules/notepack.io/lib/encode.js:162:19)
at _encode (/home/express/node_modules/notepack.io/lib/encode.js:246:17)
at _encode (/home/express/node_modules/notepack.io/lib/encode.js:162:19)
at Object.encode (/home/express/node_modules/notepack.io/lib/encode.js:261:41)
at RedisAdapter.broadcast (/home/express/node_modules/socket.io-redis/dist/index.js:313:33)
at BroadcastOperator.emit (/home/express/node_modules/socket.io/dist/broadcast-operator.js:109:22)
at Namespace.emit (/home/express/node_modules/socket.io/dist/namespace.js:170:73)
at Socket.<anonymous> (/home/express/node_modules/@socket.io/admin-ui/dist/index.js:284:36)
I searched this error and found someone else also hit this error
I'm encountering the same issue, only with mode set as "development", otherwise it works great.
Is there any workaround available for the same @qiulang@darrachequesne ?
@darrachequesne I have verified 0.5.1 worked and I would like turn it into feature request: is it possible to make mode setting a runtime setting, so I can turn it on and off when I need ?
Activity
[-]I only have dashboard and servers menu[/-][+]"Error: Could not encode" when set mode "development"[/+]qiulang commentedon Jul 19, 2022
I saw this issue #7 was closed at 0.1.2 but I am using 0.4.0 (and "socket.io-redis": "^6.1.1") and still hit it.
mgarf commentedon Aug 19, 2022
+1 seeing it myself as well
mgarf commentedon Aug 19, 2022
Here is my stacktrace (similar to above)
aryaman-titan commentedon Oct 5, 2022
I'm encountering the same issue, only with mode set as "development", otherwise it works great.
Is there any workaround available for the same @qiulang @darrachequesne ?
fix: properly track events with acknowledgement
darrachequesne commentedon Oct 6, 2022
I think I have found the culprit, this should be fixed by 6d58a75.
I'll publish a new version later today.
aryaman-titan commentedon Oct 6, 2022
That's awesome! Waiting for it
darrachequesne commentedon Oct 7, 2022
Released in 0.5.1. Thanks for your patience 👍
qiulang commentedon Oct 10, 2022
@darrachequesne I have verified 0.5.1 worked and I would like turn it into feature request: is it possible to make mode setting a runtime setting, so I can turn it on and off when I need ?
I understand the development mode will be a burden to https://admin.socket.io/ but we will host the Admin UI server ourselves so a runtime setting is more appropriate.
qiulang commentedon Oct 10, 2022
@darrachequesne 0.5.1 also fixed the issue I raised here darrachequesne/notepack#29