IndexError: list index out of range statMeasurement
- Dominant language
- Python
- Stars
- 16
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm hitting the following error message when trying to run the gw script on one of our appliances.
[root@something user-data]# /usr/bin/python /var/user-data/get_gateway_stats.py
Traceback (most recent call last):
File "/var/user-data/get_gateway_stats.py", line 734, in
run()
File "/var/user-data/get_gateway_stats.py", line 190, in run
getSysStats()
File "/var/user-data/get_gateway_stats.py", line 408, in getSysStats
statMeasurement = statAry[1][:5].replace(".","").strip()
IndexError: list index out of range
Do let me know if I should open a support case.
Thanks,
Mihai
Contributor guide
Research direction
Start with /var/user-data/get_gateway_stats.py, especially getSysStats() around line 408 and the run() entry point. Reproduce the failure on an appliance or inspect the input that builds statAry to determine why its second element is missing. Done means the script no longer raises this IndexError and the affected statistics behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100