synodriver / nonebot_plugin_picsearcher

pic search plugin for nonebot2
GNU General Public License v3.0
111 stars 16 forks source link

转换CQ码出现错误,trace报错 #58

Open Amber-siley opened 1 year ago

Amber-siley commented 1 year ago

使用的是nb plugin安装 CQ码报错 image 搜图只有ex,nao,yandex,iqdb,ascii2d(起码没有报错), 使用trace时报错 image

顺便问一下,没有图片返回是正常的吗 image

env配置如下

HOST=127.0.0.1 PORT=8080 LOG_LEVEL=DEBUG FASTAPI_RELOAD=false command_start=[""]

EX_COOKIE=XXXXX PROXY=http://127.0.0.1:1082 # type: str e.g. PROXY=http://127.0.0.1:8889 SEARCH_LIMIT=3 # 搜索限制 防刷屏 RISK_CONTROL=true # 风控模式 启动后会使用合并转发 只有gocq有实现 RECORD_PRIORITY=99 # 记录上一张图片matcher的优先级,与 上一张 命令有关

synodriver commented 1 year ago

没有图片返回可以看看gocq日志

synodriver commented 1 year ago

trace的api可能改了

Amber-siley commented 1 year ago

gocq日志

[2023-01-06 17:16:35] [WARNING]: 转换CQ码 ({"type": "image", "data": {"file": "https://img3.saucenao.com/vpc/frame.php?expires=1673380800&auth=xeDEVY5B5jYas7oz8zoKbY_LbHs&rsz=0&enc=YW5pbWUvW1VOU09SVEVELVJTU10vW1N1YnNQbGVhc2VdIEJvY2NoaSB0aGUgUm9jayEgLSAwMiAoNzIwcCkgWzQ0NzgyNTk1XS5ta3YuMTI2MjM0LnppcA&sub=5114-69-213255.jpg", "type": null, "cache": "true", "proxy": "true", "timeout": null}}) 到MiraiGo Element时出现错误: Get "https://img3.saucenao.com/vpc/frame.php?expires=1673380800&auth=xeDEVY5B5jYas7oz8zoKbY_LbHs&rsz=0&enc=YW5pbWUvW1VOU09SVEVELVJTU10vW1N1YnNQbGVhc2VdIEJvY2NoaSB0aGUgUm9jayEgLSAwMiAoNzIwcCkgWzQ0NzgyNTk1XS5ta3YuMTI2MjM0LnppcA&sub=5114-69-213255.jpg": read tcp 192.168.2.104:60735->104.26.1.232:443: wsarecv: An existing connection was forcibly closed by the remote host. 将忽略本段CQ码.

synodriver commented 1 year ago

结果看起来是gocq连接被终止了