050644zf / 050644zf/nonebot-plugin-bfchat
查询接口似乎寄了
- Dominant language
- Python
- Stars
- 20
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
插件使用的查询接口接口似乎寄了(没开代理
Traceback (most recent call last):
File "E:\QQqunbot\bot.py", line 21, in
nonebot.run()
File "E:\QQqunbot\.venv\lib\site-packages\nonebot\__init__.py", line 335, in run
get_driver().run(*args, **kwargs)
File "E:\QQqunbot\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "E:\QQqunbot\.venv\lib\site-packages\uvicorn\main.py", line 575, in run
server.run()
File "E:\QQqunbot\.venv\lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "D:\nonebot\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "D:\nonebot\lib\asyncio\base_events.py", line 629, in run_until_complete
self.run_forever()
File "D:\nonebot\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "D:\nonebot\lib\asyncio\base_events.py", line 596, in run_forever
self._run_once()
File "D:\nonebot\lib\asyncio\base_events.py", line 1890, in _run_once
handle._run()
File "D:\nonebot\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "E:\QQqunbot\.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
> File "E:\QQqunbot\.venv\lib\site-packages\nonebot\message.py", line 428, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "E:\QQqunbot\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "E:\QQqunbot\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
await handler(
File "E:\QQqunbot\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 94, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "E:\QQqunbot\.venv\lib\site-packages\nonebot_plugin_bfchat\bf1.py", line 125, in bf1_handler
result = get_player_data(player)
File "E:\QQqunbot\.venv\lib\site-packages\nonebot_plugin_bfchat\bf1.py", line 28, in get_player_data
return request_API(GAME,'all',{'name':player_name,'lang':LANG})
File "E:\QQqunbot\.venv\lib\site-packages\nonebot_plugin_bfchat\utils.py", line 33, in request_API
raise requests.HTTPError
requests.exceptions.HTTPError
Contributor guide
No contributing guide indexed for this repository
Research direction
The error originates in `nonebot_plugin_bfchat/utils.py` line 33 where `requests.HTTPError` is raised. Examine the `request_API` function and the call in `bf1.py` line 28 (`get_player_data`). The issue mentions the query interface is broken without a proxy. Start by checking the API endpoint and network connectivity. Look at the `requests` call and error handling. A test would involve simulating the API call to see the failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100