HelloZeroNet / HelloZeroNet/ZeroNet
ChartCollector Collector connection_ping_min error: min() arg is an empty sequence
- Lenguaje dominante
- JavaScript
- Estrellas
- 18.8k
- Forks
- 2.3k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- observability
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100