-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【Bug】部分api会提示“访问权限不足” #543
Comments
我也突然出现了访问权限不足的问题 |
+1 |
1 similar comment
+1 |
我是青龙面板:版本v2.15.12 |
+1 |
青龙面板,其他都正常,投币异常 [15:21:39 WRN] 异常:System.Exception: 访问权限不足 |
+1,如何解决? |
+1,在
(已经尝试过重新登录) |
问题出在获取视频总数量的代码: /// <summary>
/// 获取UP主的视频总数量
/// </summary>
/// <param name="upId"></param>
/// <returns></returns>
public async Task<int> GetVideoCountOfUp(long upId)
{
BiliApiResponse<SearchUpVideosResponse> re = await _videoApi.SearchVideosByUpId(upId);
if (re.Code != 0)
{
throw new Exception(re.Message);
}
return re.Data.Page.Count;
} 调用该函数时会返回如下 {
"code": -403,
"message": "访问权限不足",
"ttl": 1
} 根据Nemo2011/bilibili-api#290 应该是B站进行了反爬更新 |
我也遇到了相同的问题,附Debug日志 repo目录: /ql/data/repo | _ \ __ _ _ _ | __ ) | ||_ |_ ___ | | [10:51:04 INF] BiliBiliToolPro 开始运行... [10:51:04 INF] 【账号个数】1个 [10:51:05 INF] 【目标任务】Daily [10:51:05 INF] =====开始 每日任务 ===== [10:51:05 INF] ---开始 Set Cookie --- [10:51:05 INF] ---开始 登录 --- [RESPONSE] [ELAPSED] 00:00:20.5876697 [10:51:42 DBG] [REQUEST] [RESPONSE] {"code":0,"message":"0","ttl":1,"data":{"login":true,"watch":true,"coins":10,"share":false,"email":true,"tel":true,"safe_question":true,"identify_card":false}} [ELAPSED] 00:00:16.1959524 [RESPONSE] {"code":0,"message":"0","ttl":1,"data":{"list":[{"mid":3493259647125765,"attribute":2,"mtime":1682879887,"tag":null,"special":0,"contract_info":{},"uname":"收藏夹有好多学习资料","face":"https://i0.hdslb.com/bfs/face/e1366f5071364b09bf57163eb211abcac5c9a77c.jpg","sign":"分享快乐","face_nft":0,"official_verify":{"type":-1,"desc":""},"vip":{"vipType":0,"vipDueDate":0,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":605217117,"attribute":2,"mtime":1679422258,"tag":null,"special":0,"contract_info":{},"uname":"正义光影","face":"https://i0.hdslb.com/bfs/face/179e0497352590ff02b6b43af26e735f53096797.jpg","sign":"如果解说不好电影,那和咸鱼有什么区别?\n关注我,绝对不会令你失望","face_nft":0,"official_verify":{"type":-1,"desc":""},"vip":{"vipType":2,"vipDueDate":1700236800000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":282067352,"attribute":2,"mtime":1681573497,"tag":null,"special":0,"contract_info":{},"uname":"小仙燃起来了","face":"https://i2.hdslb.com/bfs/face/bad9ce1e00173b670604d9ebeb06b4d3d74e8ff5.jpg","sign":"点下关注私信粉丝群一起无限火力!商务:1515503520(请备注来意)","face_nft":0,"official_verify":{"type":0,"desc":"bilibili 知名游戏UP主"},"vip":{"vipType":2,"vipDueDate":1711728000000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":10272440,"attribute":2,"mtime":1668530812,"tag":null,"special":0,"contract_info":{},"uname":"骚拳超人","face":"https://i2.hdslb.com/bfs/face/4d3db1c6e0ada8478c190c8ef217a6d013b34809.jpg","sign":"主要分享生活vlog、小整蛊以及任何我想上传的视频 商务合作:[email protected]【备注骚拳+品牌】","face_nft":0,"official_verify":{"type":0,"desc":"bilibili 知名搞笑UP主"},"vip":{"vipType":2,"vipDueDate":1703606400000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":405370021,"attribute":2,"mtime":1625379608,"tag":null,"special":0,"contract_info":{},"uname":"尴尬的铁根er","face":"https://i1.hdslb.com/bfs/face/cbe228260be3e8d2b49cb2f8dde7a0a41bee1d93.jpg","sign":"商务合作:Jay001247","face_nft":0,"official_verify":{"type":0,"desc":"bilibili 2022百大UP主、知名UP主、直播高能主播"},"vip":{"vipType":2,"vipDueDate":1710000000000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":449704680,"attribute":2,"mtime":1666925893,"tag":null,"special":0,"contract_info":{},"uname":"意识DT","face":"https://i0.hdslb.com/bfs/face/6d8675a09ba3a50644a8ad45725d4879afeb4a65.jpg","sign":"一对一指导可私信: 吃鸡游戏库存绝版皮月夫:Xiaoxin-pubg1 外设淘宝搜创琦电子竞技","face_nft":0,"official_verify":{"type":-1,"desc":""},"vip":{"vipType":1,"vipDueDate":1685635200000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"大会员","label_theme":"vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":598819925,"attribute":2,"mtime":1635777852,"tag":null,"special":0,"contract_info":{},"uname":"马特罗托夫斯基","face":"https://i2.hdslb.com/bfs/face/30dd276c66e71d7e76236a7993aa338b8fe33259.jpg","sign":"隔天或两天更新,素材来源:网络(皮尤分辨)\n谢谢各位的关注\n合作:ML4444D(备注来意)","face_nft":0,"official_verify":{"type":0,"desc":"bilibili 知名搞笑UP主"},"vip":{"vipType":2,"vipDueDate":1693065600000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":504934876,"attribute":2,"mtime":1664693021,"tag":null,"special":0,"contract_info":{},"uname":"渤海小吏","face":"https://i1.hdslb.com/bfs/face/60d7ec1a95e5f85e8e5b2c1d49656cbcff176604.jpg","sign":"连载内容公号:渤海小吏(全网同名)\n人性的进化很慢的,以史为鉴是为了认清他\n推广橱窗中是咱自己的书,感恩您的厚爱与捧场","face_nft":0,"official_verify":{"type":0,"desc":"bilibili 知名UP主"},"vip":{"vipType":2,"vipDueDate":1695571200000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":701019831,"attribute":2,"mtime":1672880216,"tag":null,"special":0,"contract_info":{},"uname":"老秦说秦","face":"https://i0.hdslb.com/bfs/face/14f0fc3482c96f849798adb8b397e3ea1254ec3f.jpg","sign":"我的秦,西北锤王,B站知名百达up主,小号:史君说剧","face_nft":0,"official_verify":{"type":0,"desc":"老秦说秦官方账号"},"vip":{"vipType":0,"vipDueDate":0,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":1769203615,"attribute":2,"mtime":1681362804,"tag":null,"special":0,"contract_info":{},"uname":"小万宁呀","face":"https://i1.hdslb.com/bfs/face/2e01fef92f40051244c63342822db715d0ea96b5.jpg","sign":"","face_nft":0,"official_verify":{"type":-1,"desc":""},"vip":{"vipType":0,"vipDueDate":0,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":94510621,"attribute":2,"mtime":1679676664,"tag":null,"special":0,"contract_info":{},"uname":"梗指南","face":"https://i1.hdslb.com/bfs/face/9e649857c7c73452faabddcf2fbce1088f6e3ad5.jpg","sign":"关注我,看懂别人玩的梗! 商务合作:hyqiuqiu19 商务Qq:445591408","face_nft":0,"official_verify":{"type":0,"desc":"梗指南官方账号"},"vip":{"vipType":2,"vipDueDate":1715961600000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":2017552499,"attribute":2,"mtime":1681818441,"tag":null,"special":0,"contract_info":{},"uname":"坏土豆联盟","face":"https://i2.hdslb.com/bfs/face/413ebd72a2b84f37348155ff21b226f5e6c64341.jpg","sign":"陪我的国一起逆袭!\n这里是一个坏土豆的视频频道坏土豆为发芽的土豆,意在绝望中寻找希望,另外不同角度看问题,你以为土豆坏了,但是它在孕育希望\n","face_nft":0,"official_verify":{"type":0,"desc":"一个坏土豆官方账号"},"vip":{"vipType":0,"vipDueDate":0,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":7646527,"attribute":2,"mtime":1678606946,"tag":null,"special":0,"contract_info":{},"uname":"凶鸭栗","face":"https://i1.hdslb.com/bfs/face/aa31cf5a11110945e5b3c84cf0b50bc1df260a66.jpg","sign":"画点乱七八糟的动画\n原创不易,谢谢你们的支持!\n想看什么主题可私信,看到有趣的会画!","face_nft":0,"official_verify":{"type":-1,"desc":""},"vip":{"vipType":2,"vipDueDate":1739030400000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":291222529,"attribute":2,"mtime":1673075372,"tag":null,"special":0,"contract_info":{},"uname":"旺仔有内涵","face":"https://i1.hdslb.com/bfs/face/249696510b899292ad37e07e78512b4c7cefa411.jpg","sign":"商务:hailuo0617","face_nft":0,"official_verify":{"type":0,"desc":"搞笑视频UP主"},"vip":{"vipType":2,"vipDueDate":1717171200000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":667710632,"attribute":2,"mtime":1679373663,"tag":null,"special":0,"contract_info":{},"uname":"三个猪鼓励","face":"http://i2.hdslb.com/bfs/face/5d285d8a44238c23277a85e59625b2b900ebebb6.jpg","sign":"分享我们的日常,记录美好生活~~~感谢关注!感谢三连(是我们仨本人)","face_nft":0,"official_verify":{"type":0,"desc":"三个猪鼓励官方账号"},"vip":{"vipType":1,"vipDueDate":1640448000000,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":703186600,"attribute":2,"mtime":1679302303,"tag":null,"special":0,"contract_info":{},"uname":"麻薯波比呀","face":"https://i1.hdslb.com/bfs/face/c8d66f99dbc56b1b557f93adff3e819231f7805b.jpg","sign":"你装模作样的戴我的九筒做什么?","face_nft":0,"official_verify":{"type":0,"desc":"bilibili 知名UP主"},"vip":{"vipType":0,"vipDueDate":0,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":649022917,"attribute":2,"mtime":1620461966,"tag":null,"special":0,"contract_info":{},"uname":"火星方阵","face":"http://i1.hdslb.com/bfs/face/8699bb487e1768f3990688eec7231ea7318d7bd2.jpg","sign":"“五个一百正能量榜样”称号获得者,环球网特约评论员。","face_nft":0,"official_verify":{"type":0,"desc":"火星方阵官方账号"},"vip":{"vipType":0,"vipDueDate":0,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":251013709,"attribute":2,"mtime":1643787991,"tag":null,"special":0,"contract_info":{},"uname":"晨钟酱Official","face":"https://i1.hdslb.com/bfs/face/dcbe22562ca561a4e2423d7dceb6ed8a3752a5cb.jpg","sign":"软件up主【官网 jamcz.com】。不接商务合作,勿扰。","face_nft":0,"official_verify":{"type":0,"desc":"bilibili 知名科技UP主"},"vip":{"vipType":2,"vipDueDate":1742745600000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":313824859,"attribute":2,"mtime":1635912542,"tag":null,"special":0,"contract_info":{},"uname":"地位极高硬气鑫","face":"https://i1.hdslb.com/bfs/face/6386f1bfde79bbb39eb0ecf6500b427cb0e41f19.jpg","sign":"和鹿姐极限拉扯的甜甜日常\n原相机 无团队 感谢有你们\nwb:硬气鑫和娇软鹿","face_nft":0,"official_verify":{"type":0,"desc":"地位极高硬气鑫官方账号"},"vip":{"vipType":2,"vipDueDate":1732118400000,"dueRemark":"","accessStatus":0,"vipStatus":1,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":""},"avatar_subscript":1,"nickname_color":"#FB7299","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""},{"mid":1467016374,"attribute":2,"mtime":1678615780,"tag":null,"special":0,"contract_info":{},"uname":"辩论社","face":"https://i0.hdslb.com/bfs/face/a3497e690cdaa9f50a4d3c5e293dd55785f2c3e2.jpg","sign":"看辩论,提高思维能力,希望大家爱上辩论。可合作。随便私信。商务vx:q79321537","face_nft":0,"official_verify":{"type":-1,"desc":""},"vip":{"vipType":0,"vipDueDate":0,"dueRemark":"","accessStatus":0,"vipStatus":0,"vipStatusWarn":"","themeType":0,"label":{"path":"","text":"","label_theme":"","text_color":"","bg_style":0,"bg_color":"","border_color":""},"avatar_subscript":0,"nickname_color":"","avatar_subscript_url":""},"nft_icon":"","rec_reason":"","track_id":""}],"re_version":0,"total":926} [ELAPSED] 00:00:16.3103776 [RESPONSE] {"code":-403,"message":"访问权限不足","ttl":1} [ELAPSED] 00:00:18.1387826 [10:52:17 INF] ----------结束---------- [10:52:17 INF] ---开始 投币 --- [RESPONSE] {"code":0,"message":"0","ttl":1,"data":10} [ELAPSED] 00:00:14.1895084 [RESPONSE] {"code":0,"status":true,"data":{"money":null}} [ELAPSED] 00:00:17.2560343 [10:52:48 INF] ---开始 直播签到 --- [RESPONSE] {"code":1011040,"message":"今日已签到过,无法重复签到","ttl":1,"data":null} [ELAPSED] 00:00:20.1830911 [10:53:09 INF] ---开始 漫画签到 --- [RESPONSE] {"code":"invalid_argument","msg":"clockin clockin is duplicate","meta":{"argument":"clockin"}} [EXCEPTION] [ELAPSED] 00:00:17.1846774 [10:53:26 INF] ---开始 漫画阅读 --- [RESPONSE] {"code":0,"msg":"","data":{}} [ELAPSED] 00:00:18.1986110 [10:53:44 INF] ---开始 银瓜子兑换硬币 --- [10:53:44 INF] ---开始 领取大会员福利 --- [10:53:44 INF] ---开始 领取大会员漫画权益 --- [10:53:44 INF] ---开始 B币券充电 --- [10:53:44 INF] =========结束========= [10:53:44 INF] ======================== v2.0.0 开源 by https://github.com/RayWangQvQ/BiliBiliToolPro [10:53:44 INF] ·开始推送·Daily任务· [10:53:45 INF] 运行环境:Production [10:53:45 INF] 运行结束 执行结束... 耗时 200 秒 |
收到,稍后修复 |
已于v2.0.0版本修复。 |
重新在青龙面板拉取后还会提示权限问题 |
拉取最新镜像,直播间挂机任务好像还是会出现权限不足现象。 |
只修了上面提到的Ray.BiliBiliTool.DomainService.VideoDomainService.GetVideoCountOfUp(Int64 upId)接口,直播间也有接口防爬吗? |
看到了直播间的 #546 ,也是wbi的接口,一样的防爬措施,今晚我来修 |
不如先别发正式的 Release,确实查明跟进了所有的 API 变动之后再发可能会好些。 |
还是agile点吧,每日任务和直播间相对独立,修好其中一个就发,其实没啥影响。 另外一个原因,是想先尽快等装好一个解决方案的模板,剩下的被防爬了的接口,其实照着GetVideoCountOfUp复制就行了,就是加时间戳和md5参数就ok了。 最近身体不太好,没太多时间维护仓库,想着如果刚好有朋友有空,又刚好看到有封装好的代码,没准就自己仿着编码贡献了PR,就一举两得了。 |
了解了,其实我的意思是可以发 Pre-Release,但是考虑风控你说的对。 |
大哥注意身体呀,祝大哥身体健康 |
大哥请问有空可以修一下直播间么?谢谢大哥 |
现在我没有一个好用的开发环境,我开发主力机不在身边,不然应该早就提交 PR 了。 |
emmmm......直播需要的工作量比视频大,还大不少。 |
这里有一个临时修复版本,是 @thhgg781213 的 PR 的 Build,修复了 LiveFansMedal 相关 API。 |
@RayWangQvQ 记得关 issue( |
我青龙更新到最新版还是提示访问权限不足,windows本地版可以正常跑( |
拉去下最新版本的 我的可以跑 |
谢谢大哥 |
az......PR 最后不是我交的,@Polaris-cn10086 |
版本号:release-1.03
运行环境:win11 22H2 22621.1702 net 6.0
问题描述:观看、分享视频失败,投币失败
日志信息:[11:21:14 INF] ---开始 观看、分享视频 ---
[11:21:52 ERR] 观看、分享视频失败,继续其他任务。失败信息:访问权限不足
[11:23:08 WRN] 异常:System.Exception: 访问权限不足
at Ray.BiliBiliTool.DomainService.VideoDomainService.GetVideoCountOfUp(Int64 upId)
at Ray.BiliBiliTool.DomainService.DonateCoinDomainService.TryCanDonateVideoByUps(List`1 upIds, Int32 tryCount)
The text was updated successfully, but these errors were encountered: