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

查询服务器时报错 #21

Closed
YuYue-Amatsuki opened this issue Jun 29, 2024 · 2 comments
Closed

查询服务器时报错 #21

YuYue-Amatsuki opened this issue Jun 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@YuYue-Amatsuki
Copy link

日志如下

06-29 21:42:26 [SUCCESS] nonebot | OneBot V11 25******9 | [message.group.normal]: Message 1554568018 from 245******3@[:65******7] 'motd bug******.top'
06-29 21:42:26 [DEBUG] nonebot | Running PreProcessors...
06-29 21:42:26 [DEBUG] nonebot | Checking for matchers in priority 1...
06-29 21:42:26 [DEBUG] nonebot | Checking for matchers in priority 2...
06-29 21:42:26 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_picmcstat.__main__, lineno=35)
06-29 21:42:26 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_picmcstat.__main__, lineno=35)
06-29 21:42:26 [DEBUG] nonebot | Running handler Dependent(call=_)
06-29 21:42:26 [DEBUG] nonebot_plugin_picmcstat | Failed to resolve SRV record for bug******.top: NXDOMAIN: The DNS query name does not exist: _minecraft._tcp.bug******.top.
06-29 21:42:26 [DEBUG] nonebot_plugin_picmcstat | Resolved SRV record for bug066000.top: bug******.top:None
06-29 21:42:26 [DEBUG] nonebot_plugin_picmcstat | Failed to resolve CNAME record for bug******.top: NoAnswer: The DNS response does not contain an answer to the question: bug******.top. IN CNAME
06-29 21:42:26 [DEBUG] nonebot_plugin_picmcstat | Failed to resolve AAAA record for bug******.top: NoAnswer: The DNS response does not contain an answer to the question: bug******.top. IN AAAA
06-29 21:42:26 [DEBUG] nonebot_plugin_picmcstat | Resolved A record for bug******.top: 111.***.***.***
06-29 21:42:27 [ERROR] nonebot_plugin_picmcstat | 获取服务器状态/画服务器状态图出错
Traceback (most recent call last):
  File "/home/yuyue/nonebot/yuyue-nonebot/bot.py", line 22, in <module>
    nonebot.run(app="__mp_main__:app")
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot/__init__.py", line 335, in run
    get_driver().run(*args, **kwargs)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 186, in run
    uvicorn.run(
  File "/home/yuyue/.local/lib/python3.10/site-packages/uvicorn/main.py", line 569, in run
    server.run()
  File "/home/yuyue/.local/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot/message.py", line 476, in check_and_run_matcher
    await _run_matcher(
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot/message.py", line 428, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 850, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 825, in simple_run
    await handler(
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot/dependencies/__init__.py", line 94, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot_plugin_picmcstat/__main__.py", line 48, in _
    await finish_with_query(arg, svr_type)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot_plugin_picmcstat/__main__.py", line 21, in finish_with_query
    ret = await draw(ip, svr_type)
> File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot_plugin_picmcstat/draw.py", line 413, in draw
    return draw_resp(resp, ip)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot_plugin_picmcstat/draw.py", line 397, in draw_resp
    return draw_java(resp, addr)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot_plugin_picmcstat/draw.py", line 278, in draw_java
    motd = transformer.transform(trim_motd(res.motd.parsed))
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot_plugin_picmcstat/util.py", line 180, in transform
    return super().transform(motd_components)
  File "/home/yuyue/.local/lib/python3.10/site-packages/mcstatus/motd/transformers.py", line 21, in transform
    return self._format_output([handled for component in motd_components for handled in self._handle_component(component)])
  File "/home/yuyue/.local/lib/python3.10/site-packages/mcstatus/motd/transformers.py", line 21, in <listcomp>
    return self._format_output([handled for component in motd_components for handled in self._handle_component(component)])
  File "/home/yuyue/.local/lib/python3.10/site-packages/mcstatus/motd/transformers.py", line 42, in _handle_component
    return (additional, handler(component)) if additional is not None else (handler(component),)
  File "/home/yuyue/.local/lib/python3.10/site-packages/nonebot_plugin_picmcstat/util.py", line 201, in _handle_formatting
    start, end = ENUM_STYLE_BBCODE[element]
KeyError: <Formatting.OBFUSCATED: 'k'>
06-29 21:42:27 [DEBUG] nonebot | OneBot V11 | Calling API send_msg
06-29 21:42:27 [DEBUG] nonebot | Running CalledAPI hooks...
06-29 21:42:27 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_picmcstat.__main__, lineno=35) running complete
@lgc2333 lgc2333 added the bug Something isn't working label Jun 29, 2024
@lgc2333
Copy link
Member

lgc2333 commented Jun 30, 2024

请提供你的服务器motd内容以便debug,谢谢

@lgc2333
Copy link
Member

lgc2333 commented Jun 30, 2024

我知道为什么了,稍等

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants