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

进入服务器时出现 Invalid characters in username 错误 #150

Closed
xqzr opened this issue Mar 14, 2022 · 1 comment
Closed

进入服务器时出现 Invalid characters in username 错误 #150

xqzr opened this issue Mar 14, 2022 · 1 comment

Comments

@xqzr
Copy link

xqzr commented Mar 14, 2022

mc 版本从 1.18.1 => 1.18.2 后出现错误,于是 把 authlib-injector 版本 1.1.40 => 1.1.41 仍然出现错误。
mc 版本 1.18.1authlib-injector 版本 1.1.40 时 一切正常。

log

3月 14 19:51:44 x86 systemd[1]: Started mc.
3月 14 19:51:44 x86 javaN[856973]: [authlib-injector] [INFO] Logging file: /usr/local/mc/authlib-injector.log
3月 14 19:51:44 x86 javaN[856973]: [authlib-injector] [INFO] Version: 1.1.41
3月 14 19:51:44 x86 javaN[856973]: [authlib-injector] [INFO] Authentication server: https://lan-mc.****.net/api/yggdrasil
3月 14 19:51:45 x86 javaN[856973]: [authlib-injector] [INFO] Disabled local HTTP server
3月 14 19:51:45 x86 javaN[856973]: Starting net.minecraft.server.Main
3月 14 19:51:49 x86 javaN[856973]: [authlib-injector] [INFO] Transformed [com.mojang.authlib.HttpAuthenticationService] with [ConcatenateURL Workaround]
3月 14 19:51:49 x86 javaN[856973]: [authlib-injector] [INFO] Transformed [com.mojang.authlib.HttpAuthenticationService] with [Callback Metafactory Transformer]
3月 14 19:51:49 x86 javaN[856973]: [authlib-injector] [INFO] Transformed [com.mojang.authlib.yggdrasil.YggdrasilEnvironment] with [Constant URL Transformer]
3月 14 19:51:49 x86 javaN[856973]: [19:51:49] [ServerMain/INFO]: Environment: authHost='https://lan-mc.****.net/api/yggdrasil/authserver', accountsHost='https://lan-mc.****.net/api/yggdrasil/api', sessionHost='https://lan-mc.****.net/api/yggdrasil/sessionserver', servicesHost='https://lan-mc.****.net/api/yggdrasil/minecraftservices', name='PROD'
3月 14 19:51:49 x86 javaN[856973]: [authlib-injector] [INFO] Transformed [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService] with [Texture Whitelist Transformer]
3月 14 19:51:49 x86 javaN[856973]: [authlib-injector] [INFO] Transformed [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService] with [Yggdrasil Public Key Transformer]
3月 14 19:51:49 x86 javaN[856973]: [authlib-injector] [INFO] Transformed [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService] with [Callback Metafactory Transformer]
...
3月 14 19:52:16 x86 javaN[856973]: [19:52:16] [Server thread/INFO]: Time elapsed: 19685 ms
3月 14 19:52:16 x86 javaN[856973]: [19:52:16] [Server thread/INFO]: Done (19.977s)! For help, type "help"
3月 14 19:52:16 x86 javaN[856973]: [19:52:16] [Server thread/INFO]: Starting remote control listener
3月 14 19:52:16 x86 javaN[856973]: [19:52:16] [Server thread/INFO]: Thread RCON Listener started
3月 14 19:52:16 x86 javaN[856973]: [19:52:16] [Server thread/INFO]: RCON running on 0.0.0.0:25575
3月 14 19:59:38 x86 javaN[856973]: [19:59:38] [Server thread/INFO]: com.mojang.authlib.GameProfile@44f87c06[id=<null>,name=小Q主人_服主,properties={},legacy=false] (/192.168.1.6:62883) lost connection: Internal Exception: java.lang.IllegalStateException: Invalid characters in username
@xqzr xqzr changed the title 进入服务器时 Invalid characters in username 错误 进入服务器时出现 Invalid characters in username 错误 Mar 14, 2022
@yushijinhun
Copy link
Owner

1.18.2 中增加了对用户名的检查,导致此问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants