armand1m / armand1m/ipcamera_bot
handle telegram_bot::api connection errors
- Dominant language
- Rust
- Stars
- 10
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
sometimes the server replies a message and hangs up with the following error:
```
2024-01-03_16:43:02.90846 [2024-01-03T16:43:02Z ERROR telegram_bot::api] error=connection error: Connection reset by peer (os error 104)
```
this error is not being handled and it is also not panicking the thread, so the server just gets stuck once it happens requiring a manual restart
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the telegram_bot::api connection handling around the reported "Connection reset by peer" error and reproduce the stuck-server behavior if possible. Done means this connection failure is handled without leaving the server stuck, with the resulting behavior verified in the relevant execution path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100