node-red / node-red/node-red-nodes
SNMP get: Read integer 3579457891 is outside the signed 32-bit range
Open
Nobody has claimed this yet.
upstream
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 13h 57m
- Merged PRs (30d)
- 3
Description
Which node are you reporting an issue on?
- node-red-node-snmp v1.0.5 (SNMP Get)
What are the steps to reproduce?
- Reading SMART SSD, parameter № 241 "Total_LBAs_Written"
What happens?
- I get an error: "RangeError: Read integer 3579457891 is outside the signed 32-bit range"
What do you expect to happen?
- I want to get the real value which is "12150544793". In the future, this value may increase by one more digit.
Please tell us about your environment:
- Node-RED version: 3.0.2
- node.js version: 18.12.1
- npm version: 9.0.2
- Platform/OS: Synology (DVA1622 DSM v.7.1.1 ) Docker - Ubuntu 20.04.5 LTS
- Browser: Google Chrome 108.0.5359.125, x64
Need to change the type of the variable to get huge numbers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the SNMP Get for SMART SSD parameter 241 in node-red-node-snmp v1.0.5 and tracing where the signed 32-bit integer is decoded. Determine how the real value should be represented for values beyond that range; done means the reported value is returned without the RangeError, including values that grow to another digit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100