HelloZeroNet / HelloZeroNet/ZeroNet

ChartCollector Collector connection_ping_min error: min() arg is an empty sequence

Open
#2,765 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

I'm using `Version: 0.7.1 r4206, Python 3.7.3 ` and an error keeps coming out from logs:
`ChartCollector Collector connection_ping_min error: min() arg is an empty sequence`
This might be a result of the lack of edge condition checks in [the corresponding code](https://github.com/HelloZeroNet/ZeroNet/blob/py3/plugins/Chart/ChartCollector.py#L49
), where the built-in `min()` is sensitive to zero-length lists.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with plugins/Chart/ChartCollector.py at the linked line around 49 and trace how connection-ping data reaches the min() call. Reproduce or inspect the empty-data path, then verify that the collector no longer emits this error when no values are available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.