Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidAsn1Error on ans1-ber #25

Open
mohanrajanna15 opened this issue Aug 21, 2023 · 1 comment
Open

InvalidAsn1Error on ans1-ber #25

mohanrajanna15 opened this issue Aug 21, 2023 · 1 comment
Labels

Comments

@mohanrajanna15
Copy link

mohanrajanna15 commented Aug 21, 2023

Can someone explain the below error?

Critical uncaught exception: Error [InvalidAsn1Error]: Expected 0x4: got 0x0
at InvalidAsn1Error (product/node_modules/asn1-ber/lib/ber/errors.js:4:11)
at Reader.readString (product/node_modules/asn1-ber/lib/ber/reader.js:179:9)
at new ResponseMessage (product/node_modules/net-snmp/index.js:532:26)
at Session.onMsg (product/node_modules/net-snmp/index.js:911:17)
at Socket.emit (events.js:375:28)
at UDP.onMessage [as onmessage] (dgram.js:941:8)
at UDP.callbackTrampoline (internal/async_hooks.js:131:17)

@markabrahams
Copy link
Owner

Typically this would indicate that your data does not adhere to the rules of BER encoding, which are used by the library to deconstruct the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants