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

[BUG]设置op时服务器报错 #10

Closed
daidr opened this issue Mar 6, 2021 · 0 comments
Closed

[BUG]设置op时服务器报错 #10

daidr opened this issue Mar 6, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@daidr
Copy link
Collaborator

daidr commented Mar 6, 2021

Describe the bug
当设置一位未曾加入过服务器的玩家为op时,会产生报错信息如下

[authlib-injector] [WARNING] An error occurred while processing request [/https/api.mojang.com/profiles/minecraft]
java.io.UncheckedIOException: java.io.FileNotFoundException: https://auth.daidr.me/api/yggdrasil/api/profiles/minecraft
        at moe.yushi.authlibinjector.yggdrasil.YggdrasilClient.queryUUIDs(YggdrasilClient.java:65)
        at moe.yushi.authlibinjector.httpd.QueryUUIDsFilter.performQuery(QueryUUIDsFilter.java:81)
        at moe.yushi.authlibinjector.httpd.QueryUUIDsFilter.handle(QueryUUIDsFilter.java:62)
        at moe.yushi.authlibinjector.httpd.URLProcessor$1.serve(URLProcessor.java:132)
        at moe.yushi.authlibinjector.internal.fi.iki.elonen.HTTPSession.execute(HTTPSession.java:246)
        at moe.yushi.authlibinjector.internal.fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:104)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: https://auth.daidr.me/api/yggdrasil/api/profiles/minecraft
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at moe.yushi.authlibinjector.util.IOUtils.http(IOUtils.java:66)
        at moe.yushi.authlibinjector.yggdrasil.YggdrasilClient.queryUUIDs(YggdrasilClient.java:61)
        ... 6 more

[authlib-injector] [WARNING] An error occurred while processing request [/https/api.mojang.com/profiles/minecraft]
java.io.UncheckedIOException: java.io.FileNotFoundException: https://auth.daidr.me/api/yggdrasil/api/profiles/minecraft
        at moe.yushi.authlibinjector.yggdrasil.YggdrasilClient.queryUUIDs(YggdrasilClient.java:65)
        at moe.yushi.authlibinjector.httpd.QueryUUIDsFilter.performQuery(QueryUUIDsFilter.java:81)
        at moe.yushi.authlibinjector.httpd.QueryUUIDsFilter.handle(QueryUUIDsFilter.java:62)
        at moe.yushi.authlibinjector.httpd.URLProcessor$1.serve(URLProcessor.java:132)
        at moe.yushi.authlibinjector.internal.fi.iki.elonen.HTTPSession.execute(HTTPSession.java:246)
        at moe.yushi.authlibinjector.internal.fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:104)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: https://auth.daidr.me/api/yggdrasil/api/profiles/minecraft
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at moe.yushi.authlibinjector.util.IOUtils.http(IOUtils.java:66)
        at moe.yushi.authlibinjector.yggdrasil.YggdrasilClient.queryUUIDs(YggdrasilClient.java:61)
        ... 6 more

[authlib-injector] [WARNING] An error occurred while processing request [/https/api.mojang.com/profiles/minecraft]
java.io.UncheckedIOException: java.io.FileNotFoundException: https://auth.daidr.me/api/yggdrasil/api/profiles/minecraft
        at moe.yushi.authlibinjector.yggdrasil.YggdrasilClient.queryUUIDs(YggdrasilClient.java:65)
        at moe.yushi.authlibinjector.httpd.QueryUUIDsFilter.performQuery(QueryUUIDsFilter.java:81)
        at moe.yushi.authlibinjector.httpd.QueryUUIDsFilter.handle(QueryUUIDsFilter.java:62)
        at moe.yushi.authlibinjector.httpd.URLProcessor$1.serve(URLProcessor.java:132)
        at moe.yushi.authlibinjector.internal.fi.iki.elonen.HTTPSession.execute(HTTPSession.java:246)
        at moe.yushi.authlibinjector.internal.fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:104)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: https://auth.daidr.me/api/yggdrasil/api/profiles/minecraft
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at moe.yushi.authlibinjector.util.IOUtils.http(IOUtils.java:66)
        at moe.yushi.authlibinjector.yggdrasil.YggdrasilClient.queryUUIDs(YggdrasilClient.java:61)
        ... 6 more

[06:58:32] [Server thread/INFO] [minecraft/DedicatedServer]: That player does not exist

To Reproduce
Steps to reproduce the behavior:

  1. 运行一个装载了authlib-injector并将接口地址设置为GHAuth的MC服务器
  2. 执行命令 op abcd (abcd未曾加入过当前服务器)
  3. 产生报错,问题复现

Expected behavior
执行 op abcd 后应当正确获取玩家abcd的uuid并设置为op

Additional context
产生此问题是由于GHAuth未实现 /api/yggdrasil/api/profiles/minecraft 接口

@daidr daidr added bug Something isn't working help wanted Extra attention is needed labels Mar 6, 2021
@daidr daidr closed this as completed in 4d53d3e Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant