gaowanliang / gaowanliang/DownloadBot

机器人上传OneDrive报错

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

Description

./DownloadBot
2022/03/16 15:31:27 Configuration information loading completed!
2022/03/16 15:31:27 Connecting to ws://127.0.0.1:5800/jsonrpc
2022/03/16 15:31:27 Aria2 websocket connection established! Aria2 version 1.36.0
2022/03/16 15:31:29 Login to authorized account pigkie_bot
2022/03/16 15:32:43 [{b24daa85dc263312}] Download started!
2022/03/16 15:32:45 [{b24daa85dc263312}] Download completed!
2022/03/16 15:33:11 Failed to Restore :EOF
panic: Failed to Restore :EOF

goroutine 97 [running]:
log.Panicf(0x661497, 0x15, 0x40002c7f38, 0x1, 0x1)
D:/program_app/go/src/log/log.go:358 +0xa8
onedrive.restore.func1(0x40005086d0, 0x4000266240, 0x6831e8, 0x6831f0, 0x40003ec140, 0x3b, 0x4000262020, 0x40004de5a0, 0x30, 0x4000262038, ...)
D:/program_data/go/DownloadBot/vendor/onedrive/onedrive.go:104 +0x1f0
created by onedrive.restore
D:/program_data/go/DownloadBot/vendor/onedrive/onedrive.go:94 +0x174

TG显示:
********, [2022/3/16 15:32]
[{b24daa85dc263312}] Download started!

[{DownloadBot_0.0.5_freebsd_arm64.tar.gz}] Download completed!

File: downloads/DownloadBot_0.0.5_Linux_arm64.tar.gz Start upload to OneDrive
Accounts:********
File less than 4MB, go to small file channel, uploading in progress

File: downloads/DownloadBot_0.0.5_freebsd_arm64.tar.gz Start upload to OneDrive
Accounts:********
File less than 4MB, go to small file channel, uploading in progress

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in vendor/onedrive/onedrive.go, especially the restore function at lines 94 and 104, and review the logged small-file upload path that ends with EOF. Reproduce the OneDrive upload with a file under 4MB and trace the restore failure; done means the upload completes without the reported panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.