Skip to content

[Bug/漏洞] 1.19.2连接napcat报错 #194

@Readedd

Description

@Readedd

Checks / 检查

  • I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
  • I confirm that I followed the Docs and read the Changelog, but this problem still exists./我确认我按照文档配置并阅读了Changelog,但这个问题仍然存在。
  • I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。

Java Version / Java版本

zulu17.60.17-ca-jdk17.0.16-linux_x64

Minecraft Version / Minecraft版本

1.19.2

McBot Version / McBot版本

McBot-forge-1.19.2-2.2.1.1.jar

Description / 描述

按照mc百科上配置正向ws(服务器),尝试连接框架时报错,控制台输出如下内容

To Reproduce / 重现

每次连接必定触发

Log / 日志

[11:11:28] [Server thread/INFO] [minecraft/MinecraftServer]: [Readedd: ▌ 尝试链接框架]

Exception in thread "OneBot WS" java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: 公网ip:端口
at java.base/java.net.URI.create(URI.java:906)
at TRANSFORMER/OneBot.Client@0.4.0/cn.evole.onebot.client.OneBotClient.lambda$open$2(OneBotClient.java:68)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: 公网ip:端口
at java.base/java.net.URI$Parser.fail(URI.java:2976)
at java.base/java.net.URI$Parser.checkChars(URI.java:3147)
at java.base/java.net.URI$Parser.checkChar(URI.java:3157)
at java.base/java.net.URI$Parser.parse(URI.java:3172)
at java.base/java.net.URI.(URI.java:623)
at java.base/java.net.URI.create(URI.java:904)
... 4 more

Config / 配置

未设置token,其他默认

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions