Skip to content

RangeError [ERR_OUT_OF_RANGE] #6

@tenabiker

Description

@tenabiker

Hello,
Could you please lend me a hand ?

I installed Nodered do my windows pc to start learning about HDL Node. I did configured the UV-IN node without problem, when sending UV to node it works fine. But when I tried using HDL-Channel-In, it crashes when receive the data, the error is as follows:

17 Aug 13:16:44 - [info] Starting flows
17 Aug 13:16:44 - [info] Started flows
17 Aug 13:17:20 - [red] Uncaught Exception:
17 Aug 13:17:20 - RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 1. Received 2
at new NodeError (node:internal/errors:371:5)
at boundsError (node:internal/buffer:86:9)
at Buffer.readUInt8 (node:internal/buffer:252:5)
at Object.parse (C:\Users\Rafael.node-red\node_modules\smart-bus-mrgadget\lib\commands.js:3:19)
at Command.parse (C:\Users\Rafael.node-red\node_modules\smart-bus-mrgadget\lib\commands.js:439:20)
at Command.set (C:\Users\Rafael.node-red\node_modules\smart-bus-mrgadget\lib\command.js:26:31)
at new Command (C:\Users\Rafael.node-red\node_modules\smart-bus-mrgadget\lib\command.js:31:13)
at Bus.parse (C:\Users\Rafael.node-red\node_modules\smart-bus-mrgadget\lib\bus.js:142:10)
at Bus.handler (C:\Users\Rafael.node-red\node_modules\smart-bus-mrgadget\lib\bus.js:190:22)
at Socket.emit (node:events:394:28)

The error happens when I send a command from BUSPRO software to node-red configured channel.

What am I doing wrong ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions