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

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

Open
sternschnaube opened this issue Dec 10, 2023 · 9 comments
Open

Comments

@sternschnaube
Copy link

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

@valoeghese
Copy link
Member

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

@sternschnaube
Copy link
Author

image

@sternschnaube
Copy link
Author

Without VPN:

image

@sternschnaube
Copy link
Author

sternschnaube commented Dec 27, 2023

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

@sternschnaube
Copy link
Author

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

@Kissunen
Copy link

Kissunen commented Feb 24, 2024

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.

@Kissunen
Copy link

Kissunen commented Mar 1, 2024

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.

@sternschnaube
Copy link
Author

Same issues with the 1.20.4 version.

@Kissunen
Copy link

Kissunen commented Mar 2, 2024

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

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

No branches or pull requests

3 participants