zca-js: Error: Invalid WebSocket frame: RSV1 must be clear
Hello, I encountered this error message when I tried to run it. I’ve thoroughly researched the issue, but unfortunately, none of the solutions I’ve found have resolved it. Additionally, I’ve tried running the code on a Linux environment (Ubuntu 22.04) using Docker, but the same error persists.
Environments: Macos Sonoma 14.6.1 and Docker in Ubuntu 22.04
The error message:
INFO Logged in as 77xxxx0528xxxxx733
node:events:497
throw er; // Unhandled 'error' event
^
RangeError: Invalid WebSocket frame: RSV1 must be clear
at Receiver.getInfo (/Users/user/zalo-bot/lunch-poll-bot/node_modules/ws/lib/receiver.js:209:26)
at Receiver.startLoop (/Users/user/zalo-bot/lunch-poll-bot/node_modules/ws/lib/receiver.js:155:16)
at Receiver._write (/Users/user/zalo-bot/lunch-poll-bot/node_modules/ws/lib/receiver.js:94:10)
at writeOrBuffer (node:internal/streams/writable:564:12)
at _write (node:internal/streams/writable:493:10)
at Writable.write (node:internal/streams/writable:502:10)
at TLSSocket.socketOnData (/Users/user/zalo-bot/lunch-poll-bot/node_modules/ws/lib/websocket.js:1355:35)
at TLSSocket.emit (node:events:519:28)
at Readable.read (node:internal/streams/readable:780:10)
at Socket.read (node:net:772:39)
Emitted 'error' event on WebSocket instance at:
at Receiver.receiverOnError (/Users/user/zalo-bot/lunch-poll-bot/node_modules/ws/lib/websocket.js:1199:15)
at Receiver.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'WS_ERR_UNEXPECTED_RSV_1',
[Symbol(status-code)]: 1002
}
Node.js v20.14.0
Could someone help me troubleshoot this error message?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 16 (11 by maintainers)
Commits related to this issue
- chore: cleanup and "fix" ws (#10) — committed to truong9c2208/zca-js by truong9c2208 2 years ago
- chore: cleanup and "fix" ws (#10) — committed to truong9c2208/zca-js by truong9c2208 2 years ago
- Merge pull request #10 from RFS-ADRENO/main fix — committed to truyxuatnguongoc/zca-js by trinhsytuan a year ago
@RFS-ADRENO sorry bạn, nảy mình dùng thông tin login từ extension ZaloDataExtractor lại không login được nhưng sau khi dùng Cookie-Editor và lấy uid từ Console thì lại login được nhưng vẫn hiện lỗi giống như cũ 😦
Mình vừa thử lại lấy cookie bằng J2Team Cookies và version 2.0.0-alpha.2 đã chạy được mà chưa rõ lý do, tạm thời mình close issue này.
mình cũng đang bị lỗi này, test trên windows và ubuntu desktop ko dùng docker, nodejs version v18.18.0, bản zca 1.4.2
@nguyenhuutuananh bạn cập nhật lên bản mới giúp mình, rồi thử lại có lỗi thì báo lại cho mình với nhe. Cảm ơn nhìu ❤️
Extension: here
@nguyenhuutuananh, mình đã thử mọi máy rồi, ko thể tái hiện lại lỗi mà bạn gặp. Mình vừa đẩy bản mới nhất lên, bạn thử cập nhật lên rồi chạy thử xem?