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 11 forks source link

"Error connecting to Cosmetica servers - We couldn't authenticate your account!" when using Curseforge Launcher #58

Closed bvnniz closed 1 year ago

bvnniz commented 1 year ago

image

I can't customize my character at all...! I know my internet is working because, well, I'm typing this.. lol... and I'm watching YouTube at the same time. Could it be because I'm using the Curseforge Launcher to play Minecraft? :(

bvnniz commented 1 year ago

okay, well.... turns out it was a specific "lore" option that would give that error... but nothing else would? weird

eyezahhhh commented 1 year ago

What was the lore option?

bvnniz commented 1 year ago

What was the lore option?

sorry i literally forgot about this T_T the lore option in question was the very first in the list

image

i just wanted the cute little face under my name 😅

eyezahhhh commented 1 year ago

I can replicate the issue.

The API requires lore strings to be URL encoded and then base64 encoded. The website does this, but the mod just base64 encodes without URL encoding first.

Website: (✿´-ω-`) -> (%E2%9C%BF%C2%B4-%CF%89-%60) -> KCVFMiU5QyVCRiVDMiVCNC0lQ0YlODktJTYwKQ==

Mod: (✿´-ω-`) -> KOKcv8K0Lc+JLWAp

The API requires URL encoding to maximise compatibility (we encountered issues on some browsers without URL encoding), so we'll make this change through the mod, not the API.

Should be fixed in the next update (1.2.2). Until then, set your lore via the website. The rest of the in-game customization should work fine.