dgtlmoon / dgtlmoon/changedetection.io
[feature] Process connection errors as a text change
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 2k
- Avg merge
- 23h 38m
- Merged PRs (30d)
- 67
Description
Would be nice to have a feature to process connection errors. This way we could use this also as a "ping" service.
I tried this invalid connections:
**INVALID DOMAIN**
HTTPConnectionPool(host='unvalid-domain.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError(': **Failed to establish a new connection: [Errno -2] Name or service not known'))**
**WEBSERVER IS DOWN**
HTTPConnectionPool(host='domain-without-web.com', port=80): Max retries exceeded with url: / (Caused by ConnectTimeoutError(, **'Connection to domain-without-web.com timed out. (connect timeout=15)'**))
How can we process this outputs, and send a notification?
Main text to process from output:
- Failed to establish a new connection: [Errno -2] Name or service not known'))
- Connection to domain-without-web.com timed out. (connect timeout=15)
Contributor guide
Research direction
Start by examining the reported connection-error outputs for invalid domains and unavailable webservers, then trace how changedetection.io currently handles failed connections and sends notifications. Done means defining how these errors become processable text and produce a notification, including the proposed ping-service behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100