-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unexpected Boolean value. Length should be 1 #81
Comments
and another error NotImplementedError:
|
Thanks for reporting these. I'll look into them. I will, for easier tracking split them into separate issues. So if you want notifications of the others I suggest subscribing to them separately. |
The "Unexpected Boolean Value" seems to be something related to the returned payload itself. I tried various other ASN.1/X.690 decoders (which is the underlying encoding), and all of them returned the same error, so I don't think this is a bug related to If you would like to have a look yourself (maybe you see something I missed), you can use the
I have tried the following: They all trip up with an incorrect length, which indicates that there's something wrong with the data itself. |
There's something really strange going on here. And incidentally, all issues you reported point to the same problem. The "length" information in the payload that the device returns is different to what is expected by After checking all payloads you submitted against various other libraries I realise that they all report similar errors, so it seems more likely that there is a problem with the data itself rather than the libraries. However, there may still be a chance to move forward on this (at least I hope so), but I need a few more details:
|
Yes, sure please see as following: snmpwalk -On output is: |
And something to add. When I use puresnmp simple walk those error don't appear. |
That surely is intriguing as the underlying code responsible for decoding the values is the same as for bulk-walks. Can you try running a |
it's get timeout with Cr'10' , I tried to decrease this value and it is working with lower values: (with 7 for one and with 2 for another problematic device) |
This is interesting. This leads me to believe that the issue is not with bulkwalk provides the Technically, the underlying decoding (where your error occurs) is unrelated to the bulk-size. I am fairly confident in saying that, if decreasing the bulk-size makes it work, then it is very likely an issue with the device itself, and not with |
Issue Description
When tryiing to poll data with bulkwalk following errors are thrown:
Issue 1: ValueError: Unexpected Boolean value. Length should be 1, it was 11
HexDump
Issue 2: IndexError: index out of range
The text was updated successfully, but these errors were encountered: