libzmq icon indicating copy to clipboard operation
libzmq copied to clipboard

TypeError: Value must be a buffer in zmq.subscribe() method

Open ayushanurag2002 opened this issue 1 year ago • 0 comments

Please use this template for reporting suspected bugs or requests for help.

Issue description

I am getting device disconnected issue when i start Software Test Farming(STF) which uses zeromq libzmq and there is an issue in the node modules.I'm encountering a TypeError when using the zmq.subscribe() method in the zeromq package. The error message is: TypeError: Value must be a buffer at exports.Socket._subscribe (/home/[email protected]/Music/stf-node18/stf/node_modules/zeromq/lib/index.js:413:22) at Socket.subscribe (/homeMusic/stf-node18/stf/node_modules/zeromq/lib/index.js:591:19) at joinChannel (/home/Music/stf-node18/stf/lib/units/websocket/index.js:107:11) at Namespace. (/home/Music/stf-node18/stf/lib/units/websocket/index.js:389:5) at Namespace.emit (node:events:517:28) at Namespace.emit (/homeMusic/stf-node18/stf/node_modules/socket.io/lib/namespace.js:219:10) at /homeMusic/stf-node18/stf/node_modules/socket.io/lib/namespace.js:190:12 at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

Environment

libzmq version (commit hash if unreleased): 5.2.8
OS: Ubuntu 20.04.1 LTS (Focal Fossa)
Kernel: 5.15.0-94-generic
Node.js: v18.19.0
zeromq package version: 5.0.0
nan package version: 2.18.0
node-gyp package version: 10.0.1

Minimal test code / Steps to reproduce the issue

  1. I'm using zeromq version 5.2.8 and Node.js version 18.19.0 on Ubuntu 20.04.1 LTS with kernel version 5.15.0-94-generic.

I've tried reinstalling the zeromq package and the issue persists. I've also tried downgrading the nan package to version 2.14.2 as suggested in a previous response, but the issue still persists.

ayushanurag2002 avatar Feb 19 '24 06:02 ayushanurag2002