BungeeCoord dont update skin
FabioZumbi12 opened this issue ยท 7 comments
Hi,
I opening here to you have more control over error.
As i posted on your plugin page, the error log on bungee console (not spigot console)
02:56:11 [GRAVE] [ChangeSkin] Tried converting player name to uuid from third-party api
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
at com.google.gson.Gson.fromJson(Gson.java:822)
at com.google.gson.Gson.fromJson(Gson.java:775)
at com.google.gson.Gson.fromJson(Gson.java:724)
at com.google.gson.Gson.fromJson(Gson.java:696)
at com.github.games647.changeskin.core.MojangSkinApi.getUUIDFromAPI(MojangSkinApi.java:109)
at com.github.games647.changeskin.core.MojangSkinApi.getUUID(MojangSkinApi.java:63)
at com.github.games647.changeskin.bungee.tasks.NameResolver.run(NameResolver.java:47)
at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350)
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70)
at com.google.gson.Gson.fromJson(Gson.java:810)
... 10 more
Running ChangeSkin alone works fine, but i need to use with bungee :/
It's still not working perfectly sorry, but there no good API which can do the same with a good performance and caching system.
Hum.. i heard SkinRestorer is working fine. Maybe if you see what api SR is using...?
They use that API too. Now the response is:
{
"error": "Proxy overloaded, system cooling down.",
"status": 429
}
I will try the other plugin until this is not solved.
Now with this error, when i try /skin FabioZumbi12 i get "this is not the username of a paid account" but if i change my skin on mojang and use /skinupdate, the skin updates!
Now with this error, when i try /skin FabioZumbi12 i get "this is not the username of a paid account" but if i change my skin on mojang and use /skinupdate, the skin updates!
because that command uses the uuid. The only relevant rate-limit in this case is the name -> uuid query.