You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @gamadoleo - if you could read and follow the guidelines in CONTRIBUTING.md on what to include in a bug report - that would be great. In particular these points:
Reduce the problem to a minimal reproducible example
This happens when an invalid SNMP request is sent to the "sourcePort" UDP port. Adding an error handler (session.on ("error", callback) will allow you to handle this issue without causing an uncaught exception. I was able to replicate this issue with my "sourcePort" set to 5678 and using the following simple script to send an invalid SNMP request:
Alguem pode ajudar a contornar esse error, está causando travamento em minha aplicação
0|index | Error [InvalidAsn1Error]: Expected 0x4: got 0x3 0|index | at InvalidAsn1Error (/var/www/snmp/node_modules/asn1-ber/lib/ber/errors.js:4:11) 0|index | at Reader.readString (/var/www/snmp/node_modules/asn1-ber/lib/ber/reader.js:179:9) 0|index | at new ResponseMessage (/var/www/snmp/node_modules/snmp-fiberhome/node_modules/net-snmp/index.js:532:26) 0|index | at Session.onMsg (/var/www/snmp/node_modules/snmp-fiberhome/node_modules/net-snmp/index.js:911:17) 0|index | at Socket.emit (events.js:400:28) 0|index | at UDP.onMessage [as onmessage] (dgram.js:931:8)
The text was updated successfully, but these errors were encountered: