Skip to content

Premature Cosmetica Server Connection Shutdown #138

@Korulein

Description

@Korulein

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):

  • OS: Windows 10 x64 [Clientside] :: Rocky Linux 9.3 [Serverside]
  • 1.20.1 - Fabric
  • Cosmetica 1.20-1.2.7

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions