Cosmetica

Cosmetica

2M Downloads

Crash on Fabric 1.20.2 with latest version 1.2.7 while VPN is active

sternschnaube opened this issue · 9 comments

commented

java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'cosmetica'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
at net.minecraft.class_310.(class_310.java:466)
at net.minecraft.client.main.Main.main(Main.java:214)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
at com.google.gson.JsonParser.parseReader(JsonParser.java:76)
at com.google.gson.JsonParser.parseString(JsonParser.java:51)
at com.google.gson.JsonParser.parse(JsonParser.java:115)
at cc.cosmetica.impl.CosmeticaWebAPI.retrieveAPIIfNoneCached(CosmeticaWebAPI.java:751)
at cc.cosmetica.impl.CosmeticaWebAPI.newUnauthenticatedInstance(CosmeticaWebAPI.java:699)
at cc.cosmetica.api.CosmeticaAPI.newUnauthenticatedInstance(CosmeticaAPI.java:500)
at cc.cosmetica.cosmetica.Cosmetica.onInitializeClient(Cosmetica.java:207)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384)
... 6 more
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1659)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1465)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:433)
at com.google.gson.JsonParser.parseReader(JsonParser.java:71)
... 13 more

commented

It started happening again an hour or a few ago. Getting 403 Forbidden with the getapi link and the game just crashes. Using ProtonVPN and cosmetica-1.20.2-1.2.7.jar.

Edit: It's still happening over 13 hours later.

commented

Took like a day or two to get it fixed last time, but as for today, it has started happening again. 403 forbidden with getapi, and the game will crash on launch.

commented

Same issues with the 1.20.4 version.

commented

Still happening today. Unplayable with the mod causing crashing due to VPN block on the site. 403 forbidden with getapi, and a crash with the mod.

Time: 2024-03-02 13:09:40 (GMT+2)
Description: Initializing game

java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'cosmetica'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
at net.minecraft.class_310.(class_310.java:466)
at net.minecraft.client.main.Main.main(Main.java:214)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
at com.google.gson.JsonParser.parseReader(JsonParser.java:76)
at com.google.gson.JsonParser.parseString(JsonParser.java:51)
at com.google.gson.JsonParser.parse(JsonParser.java:115)
at cc.cosmetica.impl.CosmeticaWebAPI.retrieveAPIIfNoneCached(CosmeticaWebAPI.java:751)
at cc.cosmetica.impl.CosmeticaWebAPI.newUnauthenticatedInstance(CosmeticaWebAPI.java:699)
at cc.cosmetica.api.CosmeticaAPI.newUnauthenticatedInstance(CosmeticaAPI.java:500)
at cc.cosmetica.cosmetica.Cosmetica.onInitializeClient(Cosmetica.java:207)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384)
... 6 more
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1659)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1465)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:551)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:433)
at com.google.gson.JsonParser.parseReader(JsonParser.java:71)
... 13 more

commented

what do youi see when you go to https://cosmetica.cc/getapi

commented

image

commented

Without VPN:

image

commented

Hello @valoeghese, everything works now 🥳
I let this open until you confirmed it final with the close - big thanks!!

commented

I have to change my own statement. Some day it works, and the other day it doesn't.