nilaoda / BBDown

Bilibili Downloader. 一个命令行式哔哩哔哩下载器.
MIT License
9.99k stars 1.29k forks source link

Arg_KeyNotFound 问题 当下载文件时 #827

Closed InterestingFred closed 10 months ago

InterestingFred commented 10 months ago

1. 你使用的BBDown版本是什么?(指明 Release / Actions / DotnetTool)

release 161 名称: BBDown.exe 大小: 12213248 字节 (11 MiB) SHA256: 2f96ee92e69b976fbc059cb38203bae5f9dc3812092771ccdf9455b73f1d0192

2. 你在什么系统使用本软件?(Win/Linux/Mac)

win10

3. 你使用的完整命令是什么?

bbdown BV1h2421w7qH --debug

4. 遇到了什么问题?

下载不能

5. 运行截图(最好开启--debug;注意自行将Cookie/Token等敏感信息隐藏)

返回的内容:(一部分)

【前面一切正常的样子】

获取网页内容: Url: https://api.bilibili.com/x/web-interface/nav, Headers: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64) Gecko/20100101 Firefox/98.973
Accept-Encoding: gzip, deflate
Cookie: xxxxxxxxxxxx
Referer: https://www.bilibili.com/
Cache-Control: no-cache
[2024-01-30 21:55:20.219] - Response: xxxxxxxxxxxxxxxx【登录是正常的 response的内容是个json 应该没毛病 就不贴了】
[2024-01-30 21:55:20.220] - wbi: xxxxxxxxxxxxxx
[2024-01-30 21:55:20.220] - 检测账号登录...  
[2024-01-30 21:55:20.221] - 获取aid...
[2024-01-30 21:55:20.221] - 获取aid结束: -547353106  【这里问题很大 为什么aid获取到的是负数】
[2024-01-30 21:55:20.222] - 获取视频信息...
[2024-01-30 21:55:20.223] - 获取网页内容: Url: https://api.bilibili.com/x/web-interface/view?aid=-547353106, Headers: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64) Gecko/20100101 Firefox/98.973
Accept-Encoding: gzip, deflate
Cookie: xxxxxxxxxxxxxxx
Referer: https://www.bilibili.com/
Cache-Control: no-cache
[2024-01-30 21:55:20.300] - Response: {"code":-400,"message":"请求错误","ttl":1}
System.Collections.Generic.KeyNotFoundException: Arg_KeyNotFound
   at BBDown.Core.Fetcher.NormalInfoFetcher.<FetchAsync>d__0.MoveNext() + 0xdd9
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() + 0x23
   at BBDown.Program.<DoWorkAsync>d__14.MoveNext() + 0x19fe
InterestingFred commented 10 months ago

额 最新的action能用 是这样