Comments (5)
发一下报错日志,是因为访问速度太慢超时了还是什么原因?
from genshin_impact_bot.
遇到相似问题~
2021-10-30 01:21:57.160 | INFO | hoshino.modules.genshin.gacha.pool_data:init_pool_list:235 - 正在更新卡池数据
2021-10-30 01:21:57.330 | INFO | hoshino.modules.genshin.gacha.pool_data:up_role_icon:198 - 正在更新 九条裟罗 角色图标
2021-10-30 01:22:13.906 | INFO | hoshino.modules.genshin.gacha.pool_data:up_role_icon:198 - 正在更新 早柚 角色图标
2021-10-30 01:22:21.412 | INFO | hoshino.modules.genshin.gacha.pool_data:up_role_icon:198 - 正在更新 烟绯 角色图标
[2021-10-30 01:22:31,384 nonebot] ERROR: Failed to import "hoshino.modules.genshin.gacha", error:
[2021-10-30 01:22:31,385 nonebot] ERROR:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_transports/default.py", line 62, in map_httpcore_exceptions
yield
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_transports/default.py", line 201, in aiter
async for part in self._httpcore_stream:
File "/usr/local/python3/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 57, in aiter
async for chunk in self.stream:
File "/usr/local/python3/lib/python3.8/site-packages/httpcore/_bytestreams.py", line 91, in aiter
async for chunk in self._aiterator:
File "/usr/local/python3/lib/python3.8/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/usr/local/python3/lib/python3.8/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/usr/local/python3/lib/python3.8/site-packages/httpcore/_backends/anyio.py", line 63, in read
raise ReadTimeout from None
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/nonebot/plugin.py", line 249, in load_plugin
module = importlib.import_module(module_path)
File "/usr/local/python3/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/init.py", line 2, in
from .gacha import gacha_info , FILE_PATH , Gacha , POOL
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/gacha.py", line 3, in
from .pool_data import POOL ,UP_PROBABILITY,POOL_PROBABILITY,DISTANCE_FREQUENCY
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/pool_data.py", line 272, in
loop.run_until_complete(init_pool_list())
File "/usr/local/python3/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete
return future.result()
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/pool_data.py", line 263, in init_pool_list
await up_role_icon(name = item_name,star = item_star)
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/pool_data.py", line 202, in up_role_icon
role_icon = await paste_role_icon(name,star)
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/pool_data.py", line 147, in paste_role_icon
avatar_icon = await get_icon(url)
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/pool_data.py", line 119, in get_icon
icon = await get_url_data(url)
File "/root/HoshinoBot/hoshino/modules/genshin/gacha/pool_data.py", line 69, in get_url_data
resp = await client.get(url=url)
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_client.py", line 1704, in get
return await self.request(
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_client.py", line 1483, in request
response = await self.send(
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_client.py", line 1585, in send
raise exc
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_client.py", line 1579, in send
await response.aread()
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_models.py", line 1660, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_models.py", line 1660, in
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_models.py", line 1676, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_models.py", line 1730, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_client.py", line 147, in aiter
async for chunk in self._stream:
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_transports/default.py", line 202, in aiter
yield part
File "/usr/local/python3/lib/python3.8/contextlib.py", line 131, in exit
self.gen.throw(type, value, traceback)
File "/usr/local/python3/lib/python3.8/site-packages/httpx/_transports/default.py", line 79, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
from genshin_impact_bot.
尝试修了一下,你可以试试
from genshin_impact_bot.
好的
from genshin_impact_bot.
感谢~ 其实不是第一次用的话,更新个别图标应该问题不大。我这边因为迁移了服务器重新拉了代码。后面我自己调timeout到60就下载完了。
from genshin_impact_bot.
Related Issues (20)
- material_remind 插件未能正常加载 HOT 1
- 更新新圣遗物 HOT 1
- 大佬,请问大地图还更新吗 HOT 2
- 更新了新的圣遗物 HOT 7
- 圣遗物评分无响应
- 怎么查渊下宫、层岩巨渊下层资源点地图 HOT 1
- 3.0须弥地图无法加载 HOT 5
- 卡池更新API报302错误 HOT 7
- 3.0的资源好像还没有加入 HOT 1
- 💠 GI Bot 1.x 改进提案 HOT 2
- 将核心部分拆分到 `core` 分支以解决重复更新代码及两个分支有差异的问题
- 新副本还会更新吗 HOT 2
- 群消息发送失败,账号可能被风控 HOT 2
- 抽卡 HOT 2
- nonebot2启动机器人报错 HOT 11
- 需要更新一波渊下宫地图 HOT 9
- 既然没有windows,做个Dockerfile吧,让windows也能用。 HOT 2
- 请问这个适配nonebotv2.0.0b1了吗 HOT 2
- 查看体力值 HOT 2
- 【重要】Hoshino版本的部分功能存在CQ码注入漏洞 HOT 4
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 genshin_impact_bot.