API Commands issue
Opened this issue · 0 comments
iAtog commented
when I use a command to check player api like /inventory or /skill I get this stacktrace:
[07:41:54] [Thread-182/INFO]: [CHAT] §aChecking inventory of §2aatog
[07:41:54] [Thread-182/INFO] [STDOUT]: [me.Danker.handlers.APIHandler:getLatestProfileID:139]: Fetching profiles...
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.google.gson.Gson.assertFullConsumption(Gson.java:779)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.google.gson.Gson.fromJson(Gson.java:769)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.google.gson.Gson.fromJson(Gson.java:717)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.google.gson.Gson.fromJson(Gson.java:689)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at me.Danker.handlers.APIHandler.getResponse(APIHandler.java:58)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at me.Danker.handlers.APIHandler.getLatestProfileID(APIHandler.java:141)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at me.Danker.commands.InventoryCommand.lambda$processCommand$0(InventoryCommand.java:96)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Thread.run(Thread.java:750)
[07:41:55] [Thread-182/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8