node-red / node-red/node-red-nodes

Node red snmp get crash error with multiple oids

Open
#852 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
13h 57m
Merged PRs (30d)
3

Description

latest nodered version on raspberry pi 4 , also tested with older version of nodered 1.2.9.
snmp-get on a single oid works,
if i try to add another one separated by comma i get this error message identical to the one in this thread and nodered crashes

https://discourse.nodered.org/t/node-red-stops-due-to-invalidasn1error/33878

9 Nov 11:08:01 - InvalidAsn1Error: Expected 0x6: got 0x2b at InvalidAsn1Error (/home/pi/.node-red/node_modules/asn1-ber/lib/ber/errors.js:4:11) at Reader.readString (/home/pi/.node-red/node_modules/asn1-ber/lib/ber/reader.js:176:9) at Reader.readOID (/home/pi/.node-red/node_modules/asn1-ber/lib/ber/reader.js:202:15) at readVarbinds (/home/pi/.node-red/node_modules/net-snmp/index.js:254:20) at new GetResponsePdu (/home/pi/.node-red/node_modules/net-snmp/index.js:430:2) at new ResponseMessage (/home/pi/.node-red/node_modules/net-snmp/index.js:537:14) at Session.onMsg (/home/pi/.node-red/node_modules/net-snmp/index.js:911:17) at Socket.emit (events.js:314:20) at UDP.onMessage [as onmessage] (dgram.js:921:8)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash on the reported Node-RED setup by using the SNMP get node with multiple comma-separated OIDs, then trace the failure through net-snmp/index.js and asn1-ber/lib/ber/reader.js. Confirm completion when multiple OIDs no longer terminate Node-RED and the single-OID behavior remains working.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.