gaowanliang / gaowanliang/DownloadBot

无法正常使用

Open
#63 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
800
Forks
200
PR merge metrics
No merged PRs in 30d

Description

其实我的用途非常简单,只想用TG看下载进度而已,报错了~

能修复一下吗,系统 Ubuntu20.04,出错代码:

2022/08/31 01:33:17 Too Many Requests: retry after 42
panic: Too Many Requests: retry after 42

goroutine 589 [running]:
log.Panic(0xc00020d9f8, 0x1, 0x1)
D:/program_app/go/src/log/log.go:351 +0xac
main.dropErr(...)
D:/program_data/go/DownloadBot/main.go:14
main.activeRefresh.func1(0x0, 0x26b9095f, 0xc00056a140, 0xc0004dc6e0, 0x2d0)
D:/program_data/go/DownloadBot/Telegram.go:553 +0x234
main.activeRefresh(0xa3, 0xc00056a140, 0xc0004dc6e0, 0xb5ab)
D:/program_data/go/DownloadBot/Telegram.go:596 +0x159
created by main.tgBot

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in Telegram.go at activeRefresh, especially lines 553 and 596, and inspect main.go line 14 to understand how the Telegram error becomes a panic. Reproduce the Too Many Requests response with the download-progress workflow and trace the retry-after value. Done means a rate-limit response no longer crashes the bot and progress viewing remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.