Skip to content
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

表情包制作出现错误 #140

Open
yokinanya opened this issue Jun 3, 2024 · 4 comments
Open

表情包制作出现错误 #140

yokinanya opened this issue Jun 3, 2024 · 4 comments

Comments

@yokinanya
Copy link
Contributor

yokinanya commented Jun 3, 2024

相关log:

06-03 15:44:22 [ERROR] omega_requests | Omega Requests | Request(method='GET', url='https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxMDk5MzMyNTExEhRViE9ppNXkuZtatbqb1ITNNmJJ9xiV_Awg_woo5aDPgvi-hgNQgL2jAQ&rkey=CAISMG3CAyYEJxErrqLXn6b2TIDtAuhjJmFeOQjUbiig39aOIKkLdkqCBozfwwuSxYabMw&spec=0') failed with 3 times attempts > Exception ExceededAttemptError: The number of attempts exceeds limit with final exception: ClientConnectorSSLError: Cannot connect to host multimedia.nt.qq.com.cn:443 ssl:default [[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1006)]
06-03 15:44:22 [ERROR] sticker_maker | StickerMaker | 下载表情包素材图片失败, The number of attempts exceeds limit.

相关issue:LagrangeDev/Lagrange.Core#315
我自己这边临时解决方案就是把这个域名的https替换为http

@Ailitonia
Copy link
Owner

目前是使用 https://gchat.qpic.cn 域名替换来暂时修复这个问题
Fixed in e7bebde

Ailitonia added a commit that referenced this issue Jun 8, 2024
- OneBot v11 ntqq 图片域名 processor 新增 url 替换方式, 默认替换为 http 链接
@yokinanya
Copy link
Contributor Author

yokinanya commented Sep 26, 2024

通过回复获取机器人发送的图片消息会获取到一个错误的图片链接,相关issue:LagrangeDev/Lagrange.Core#548 ,目测是Lagrange的问题

09-26 11:45:40 [ERROR] src | Omega Requests | Download 'http://gchat.qpic.cn/gchatpic_new/3147892066/3956432629-1837154051-07AEB891BEFCCF5C7D96460528428113/0?term=255&is_origin=1' to TemporaryResource(path='/home/ubuntu/nonebot/omega-miya/.tmp/sticker_maker/tmp/sticker_source_tmp_748275188c5d3e83d94c0b3eca3b45d9f4a00d1dcd0423edc8e78d8fd892f17d') failed with code 404

并且链接替换似乎并没有生效

09-26 11:52:59 [ERROR] src | Omega Requests | Request(method='GET', url='https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxMDk5MzMyNTExEhSiKAwHG_hbLigA5UEl20lOOiZBfRixggIg_woolvSf5drfiAMyBHByb2RQgL2jAQ&rkey=CAQSKBKw4gQGr0AbuQ4lVDx_2_I5wBTRZo2neZlI8ZO3dKNt0aO95oqfKQQ') failed with 3 times attempts > ExceededAttemptLimited: The number of attempts exceeds limit with final exception: ClientConnectorSSLError: Cannot connect to host multimedia.nt.qq.com.cn:443 ssl:default [[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1000)]

@yokinanya yokinanya reopened this Sep 26, 2024
@Ailitonia
Copy link
Owner

啊这 我现在主要用的还是 NapCatQQ, 晚点回去测试一下

@Ailitonia
Copy link
Owner

回复消息中图片链接替换已在 7c3c5db 中修复了

同时在这之后链接替换默认不会启用, 需要手动在 .env 中配置 onebot_v11_image_url_replacer=domainonebot_v11_image_url_replacer=http 启用

Lagrange 的这问题后面再看看是不是 bug 吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants