Comments (4)
看了眼源码的返回格式发现和机器人返回的不一样,感觉是没匹配上搜索方式,我自己再看看...
from nonebot_plugin_picsearcher.
是cookie问题吗?
from nonebot_plugin_picsearcher.
是cookie问题吗?
大概是因为我yunzai的bot的命令添加了一个前缀,#ex没有匹配上ex搜索,试了试取消命令前缀,报了参数错误
Traceback (most recent call last):
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1073, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1058, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 964, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 633, in sock_connect
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 668, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 110] Connect call failed ('31.13.85.53', 443)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/nonebot_plugin_picsearcher/__init__.py", line 83, in get_setu
async for msg in limiter(get_des(url, mod), getattr(bot.config, "search_limit", None) or 2):
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/nonebot_plugin_picsearcher/utils.py", line 9, in limiter
yield await gen.asend(None)
^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/nonebot_plugin_picsearcher/__init__.py", line 39, in get_des
async for msg in get_des_ex(url):
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/nonebot_plugin_picsearcher/ex.py", line 99, in get_des
image_data: List[Tuple] = await get_pic_from_url(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/nonebot_plugin_picsearcher/ex.py", line 74, in get_pic_from_url
async with session.post(target, data=data, headers=headers, proxy=proxy) as res:
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
raise last_exc
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.cache/pypoetry/virtualenvs/py-plugin-tbyCEf0r-py3.11/lib/python3.11/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host upld.e-hentai.org:443 ssl:default [Connect call failed ('31.13.85.53', 443)]
from nonebot_plugin_picsearcher.
emmm,看着是超时了
from nonebot_plugin_picsearcher.
Related Issues (20)
- 运行时报错,ImportError: cannot import name 'State' from 'nonebot.params' HOT 9
- 搜索报错 HOT 3
- 关于插件图源选择问题 HOT 1
- 报错 HOT 2
- 莫名其妙的触发 HOT 4
- 转换CQ码错误 HOT 1
- trace搜图报错 HOT 1
- 刚接触nonebot 有些问题想请教一下 HOT 4
- 下载picsearcher后无法处理图片 HOT 1
- 在 nonebot2 项目中设置 load_plugin() HOT 2
- 装了几个插件要怎么设置才能响应搜图命令 HOT 1
- 经常出现某个源明明有原图出处但是显示无相似度高的结果 HOT 3
- PIP安装失败 HOT 3
- 搜图报错,actionfailed HOT 3
- 转换CQ码出现错误,trace报错 HOT 4
- ASCII2D搜图只会返回"找不到高相似度的""hso" HOT 1
- AttributeError: 'NoneType' object has no attribute 'SendGroupForwardMsgResult' HOT 1
- 群聊使用时,没有@也会被这是什么关键字调用 HOT 1
- 能否考虑增加yandex平台
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonebot_plugin_picsearcher.