Cosmetica-cc / Cosmetica

Custom public cosmetics, Free for everyone. Forever. Ongoing Development is happening at Cosmetica-2, still WIP
https://cosmetica.cc
Apache License 2.0
54 stars 10 forks source link

Premature Cosmetica Server Connection Shutdown #138

Open Korulein opened 3 months ago

Korulein commented 3 months ago

Describe the bug Cosmetica failure to connect to servers.

To Reproduce Steps to reproduce the behaviour: Upon opening up the Cosmetica GUI, your skin appears as default. Proceeding to try and add any form of cosmetic either fails to load the relevant menu or when selecting a title your title does not update.

Expected behaviour The expected behaviour is that the GUI would load up as it normally does, displaying your skin and displaying the selection of cosmetics when asked to.

Screenshots image image

Setup (please complete the following information):

Additional context

The server is a heavily modded, custom modpack. Prior to the latest update cosmetica had been working without issue, the added mods include:

Origins Origins Extra Origins ++ Chest Tracker Botania Horse Stats Vanilla Merenc Anvil Fix

In the clientside logs, the following error is thrown:

[14:13:49] [Render thread/WARN]: In state "LOADED" but dataSelection is null. Switching to state "LOADING"! [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: java.io.UncheckedIOException: org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at cc.cosmetica.api.ServerResponse.(ServerResponse.java:50) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at cc.cosmetica.impl.CosmeticaWebAPI.getCosmeticsPage(CosmeticaWebAPI.java:248) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at cc.cosmetica.impl.CosmeticaWebAPI.getRecentCosmetics(CosmeticaWebAPI.java:258) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at cc.cosmetica.cosmetica.screens.BrowseCosmeticsScreen.lambda$addWidgets$1(BrowseCosmeticsScreen.java:100) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at cc.cosmetica.cosmetica.screens.widget.FetchingCosmetics.lambda$new$0(FetchingCosmetics.java:36) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: Caused by: org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:263) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:222) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:183) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:135) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:242) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/java.util.zip.GZIPInputStream.read(GZIPInputStream.java:117) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:70) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/java.io.InputStreamReader.read(InputStreamReader.java:177) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at java.base/java.io.Reader.read(Reader.java:250) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at org.apache.http.util.EntityUtils.toString(EntityUtils.java:227) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at org.apache.http.util.EntityUtils.toString(EntityUtils.java:270) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at cc.cosmetica.util.Response.getAsJson(Response.java:95) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: at cc.cosmetica.impl.CosmeticaWebAPI.getCosmeticsPage(CosmeticaWebAPI.java:235) [14:13:49] [Fetching Cosmetics Thread #1/INFO]: [STDERR]: ... 4 more