cssxsh / bilibili-helper

Mirai Console 插件开发计划
https://github.com/users/cssxsh/projects/4
GNU Affero General Public License v3.0
144 stars 18 forks source link

[bug] BiliApiException(data=TempData(code=19002000 #105

Closed Proanx closed 1 year ago

Proanx commented 1 year ago

配置文件内: 6 }U3LZTD~HLAL6C2H7{%ZV 日志:

2023-05-19 20:00:36 W/bilibili-helper: LiveWaiter with 56377634 fail.
BiliApiException(data=TempData(code=19002000, data=null, result=null, message=获取初始化数据失败, ttl=1, msg=null), url=https://api.live.bilibili.com/xlive/web-room/v1/index/getInfoByRoom?room_id=56377634)
        at bilibili-helper-1.7.1.mirai2.jar//xyz.cssxsh.bilibili.api.LiveKt$getLiveInfo$$inlined$json$1$1.invokeSuspend(Api.kt:94)
        ...
cssxsh commented 1 year ago

请表述做了什么操作

Proanx commented 1 year ago
  1. 发送/bili-live add {uid} {群号}
  2. bot返回对xxxx的监听任务, 添加完成
  3. 没有正常发送开播通知
  4. 查看日志就是最开始的情况
cssxsh commented 1 year ago

56377634: 56377634

关闭 mirai, 把这行删掉, 重新订阅 或者 换成 56377634: 2222705

按道理他在订阅初始化的时候就报错了

Proanx commented 1 year ago

56377634: 56377634

关闭 mirai, 把这行删掉, 重新订阅 或者 换成 56377634: 2222705

按道理他在订阅初始化的时候就报错了

当时试了两个用户,都提示添加完成,但是结果都是uid:uid,我手动处理了。 今天重新试了下,发现这个接口现在需要鉴权了,流程不能走通 api.bilibili.com/x/space/wbi/acc/info

// 发生错误, 访问权限不足 in https://api.bilibili.com/x/space/wbi/acc/info?mid=2060727&jsonp=jsonp&tid=0
{
  "code": -403,
  "message": "访问权限不足",
  "ttl": 1
}
cssxsh commented 1 year ago

wbi 的鉴权很麻烦

https://live.bilibili.com/5786841 你可以直接用 直播间 id 5786841 进行订阅

Akesaka-Hitsuki commented 1 year ago

wbi 的鉴权很麻烦

https://live.bilibili.com/5786841 你可以直接用 直播间 id 5786841 进行订阅

请教一下 通过直播间id订阅的命令是啥

cssxsh commented 1 year ago

wbi 的鉴权很麻烦 https://live.bilibili.com/5786841 你可以直接用 直播间 id 5786841 进行订阅

请教一下 通过直播间id订阅的命令是啥

和原本的一样,只不过把 uid 换成 room_id

Akesaka-Hitsuki commented 1 year ago

wbi 的鉴权很麻烦 https://live.bilibili.com/5786841 你可以直接用 直播间 id 5786841 进行订阅

请教一下 通过直播间id订阅的命令是啥

和原本的一样,只不过把 uid 换成 room_id

我试了试 /B直播 add 3831672 (这个是房间号 但是返回

2023-05-22 21:00:00 W/bilibili-helper: BiliApiException(data=TempData(code=-403, data=null, result=null, message=访问权限不足, ttl=1, msg=null), u
rl=https://api.bilibili.com/x/space/wbi/acc/info?mid=3831672&jsonp=jsonp&tid=0)
BiliApiException(data=TempData(code=-403, data=null, result=null, message=访问权限不足, ttl=1, msg=null), url=https://api.bilibili.com/x/space/wbi
/acc/info?mid=3831672&jsonp=jsonp&tid=0)
        at bilibili-helper-1.7.1.mirai2.jar//xyz.cssxsh.bilibili.api.UserKt$getUserInfo$$inlined$json$1$1.invokeSuspend(Api.kt:94)
        at bilibili-helper-1.7.1.mirai2.jar//xyz.cssxsh.bilibili.api.UserKt$getUserInfo$$inlined$json$1$1.invoke(Api.kt)
        at bilibili-helper-1.7.1.mirai2.jar//xyz.cssxsh.bilibili.api.UserKt$getUserInfo$$inlined$json$1$1.invoke(Api.kt)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.client.statement.HttpStatement.execute(HttpStatement.kt:50)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.client.statement.HttpStatement$execute$1.invokeSuspend(HttpStatement.kt)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
        at bilibili-helper-1.7.1.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
cssxsh commented 1 year ago

那就慢慢等

cssxsh commented 1 year ago

https://github.com/cssxsh/bilibili-helper/commit/06398cd63646d48e6127defd9afc072d204837a1

https://github.com/cssxsh/bilibili-helper/actions/runs/5046825852

Akesaka-Hitsuki commented 1 year ago

06398cd

https://github.com/cssxsh/bilibili-helper/actions/runs/5046825852

感谢 已经能正常订阅惹