Closed Yppup closed 3 weeks ago
如果可以的话,在nonebot_plugin_bilichat/lib/fetch_dynamic.py 这个文件的第98行前面打印一下 url,看看返回的是什么内容
请您提供从命令开始到报错的完整日志
另外,请您查看rsshub对于此up的返回信息,其中动态链接是否包含http头。 例如 https://rsshub.app/bilibili/user/dynamic/2267573
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>DIYgod 的 bilibili 动态</title>
<link>https://space.bilibili.com/2267573/dynamic</link>
<atom:link href="http://rsshub.app/bilibili/user/dynamic/2267573" rel="self" type="application/rss+xml"/>
<description>DIYgod 的 bilibili 动态 - Powered by RSSHub</description>
<generator>RSSHub</generator>
<webMaster>contact@rsshub.app (RSSHub)</webMaster>
<language>en</language>
<image>
<url>https://i2.hdslb.com/bfs/face/9882696336717748a66cb70b0ed3f488f0cc9dad.jpg</url>
<title>DIYgod 的 bilibili 动态</title>
<link>https://space.bilibili.com/2267573/dynamic</link>
</image>
<lastBuildDate>Sun, 28 Jul 2024 19:05:55 GMT</lastBuildDate>
<ttl>180</ttl>
<item>
<title>【幻兽帕鲁】佐伊塔主暴揍佐伊塔主</title>
<description>视频地址:<a href="https://www.bilibili.com/video/BV1eu4m1N7cL">https://www.bilibili.com/video/BV1eu4m1N7cL</a><br><iframe src="https://www.bilibili.com/blackboard/html5mobileplayer.html?bvid=BV1eu4m1N7cL&high_quality=1&autoplay=0" width="650" height="477" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" referrerpolicy="no-referrer"></iframe><br><img src="http://i0.hdslb.com/bfs/archive/184adce3ab73bcbb0d441babc141262dd7e9b99f.jpg" referrerpolicy="no-referrer"></description>
<link>https://t.bilibili.com/895773042317197331</link>
<guid isPermaLink="false">https://t.bilibili.com/895773042317197331</guid>
<pubDate>Thu, 08 Feb 2024 14:16:54 GMT</pubDate>
<author>DIYgod</author>
</item>
<item>
<title>【幻兽帕鲁】佐伊塔主老婆带回家</title>
<description>视频地址:<a href="https://www.bilibili.com/video/BV1vF4m1T7Wi">https://www.bilibili.com/video/BV1vF4m1T7Wi</a><br><iframe src="https://www.bilibili.com/blackboard/html5mobileplayer.html?bvid=BV1vF4m1T7Wi&high_quality=1&autoplay=0" width="650" height="477" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" referrerpolicy="no-referrer"></iframe><br><img src="http://i1.hdslb.com/bfs/archive/22c8b133bdbf2626af8b7b992da6537da7ce310e.jpg" referrerpolicy="no-referrer"></description>
<link>https://t.bilibili.com/895764525364543512</link>
<guid isPermaLink="false">https://t.bilibili.com/895764525364543512</guid>
<pubDate>Thu, 08 Feb 2024 13:43:51 GMT</pubDate>
<author>DIYgod</author>
</item>
其中
<link>https://t.bilibili.com/895773042317197331</link>
是正常的返回链接
如果可以的话,在nonebot_plugin_bilichat/lib/fetch_dynamic.py 这个文件的第98行前面打印一下 url,看看返回的是什么内容
如果我没有写错的话,这里url是空的,没有返回任何值。
了解问题了,是if表达式范围出错的问题,马上修复
了解问题了,是if表达式范围出错的问题,马上修复
感谢🙏
操作系统
Linux
Python 版本
3.10.8
NoneBot 版本
2.3.0
Bilichat 版本
5.12.4
描述问题
[ERROR] nonebot_plugin_bilichat | [Dynamic] 获取 UID RSS 动态失败: Request URL is missing an 'http://' or 'https://' protocol. 使用RSSHub自建源,源经RSS阅读器测试可以正常使用。
插件的配置项
DRIVER=~fastapi ONEBOT_ACCESS_TOKEN= SUPERUSERS=[""] LOG_LEVEL=DEBUG
COMMAND_SEP=[""] COMMAND_START=[""] bilichat_cmd_start=""
bilichat_rss_base = "http://IP:PORT/" bilichat_cd_time = 120 bilichat_neterror_retry = 3 bilichat_use_browser = True
截图或日志