armand1m / armand1m/ipcamera_bot

handle telegram_bot::api connection errors

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.