Value out of range

Hi I am receiving some messages from azure cloud and converting them into JSON Object .but sometimes i am getting below error,can anyone guide me how to solve this issue.
[error] RangeError: The value of "value" is out of range. It must be >= 0 and <= 255. Received -19
at new NodeError (node:internal/errors:371:5)
at writeU_Int8 (node:internal/buffer:738:11)
at Buffer.writeUInt8 (node:internal/buffer:748:10)
at BufferBuilder.appendUInt8 (C:\Users\Admin.node-red\node_modules\buffer-builder\buffer-builder.js:44:15)
at Object.encoder [as encode] (C:\Users\Admin.node-red\node_modules\amqp10\lib\types.js:390:61)
at Object.encoder [as encode] (C:\Users\Admin.node-red\node_modules\amqp10\lib\types.js:429:17)
at Codec.encode (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:174:20)
at Codec._encodeObject (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:232:48)
at Codec.encode (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:181:32)
at Object.listBuilder [as encode] (C:\Users\Admin.node-red\node_modules\amqp10\lib\types.js:112:43)
at Codec.encode (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:174:20)
at Codec._encodeObject (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:232:48)
at Codec.encode (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:181:32)
at Codec._encodeObject (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:219:10)
at Codec.encode (C:\Users\Admin.node-red\node_modules\amqp10\lib\codec.js:181:32)
at Object.frames.writeFrame (C:\Users\Admin.node-red\node_modules\amqp10\lib\frames.js:46:11)
image
image
image

i have got some idea from the below link i have stringified (Serialized) the incoming message and then parsed (deserialized) it again ,looks that had solved a problem for somebody .i am going to try this.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.