TypeError: Value must be a buffer in zmq.subscribe() method
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.
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
- 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.