[ Resolved ] Can't update user avatar

I have just tried to change my user avatar from my browser and no matter what image format I try to use be it png or jpg it quickly flashes up some json error. I cannot even change it from the Android app.

14 points · 4 comments · view on lemmy.world

4 Comments

willya@lemmyf.uk · 2 pts · 3y (2 replies)

Try to Squoosh the image down and retry. A lot of those errors are generally from an image being too large for what the instance has set.

JustineSmithies@lemmy.world · 1 pts · 3y (1 reply)

Nope reduced it down to 10k and still the same but thanks anyway.

willya@lemmyf.uk · 4 pts · 3y

World may have disabled uploads with whatever CSAM spam was going on.

Kaelygon@lemmy.world · 1 pts · 3y

I am trying to upload 790 byte and 96x96px sized avatar icon and it still fails. I get pop up "Saved" but it doesn't seem to change anything

Edit: I am getting this error in mozilla console

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data client.js:2:1776766
    handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
    (Async: promise callback)
    handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
    n https://lemmy.world/static/fd8d452/js/client.js:2

Edit2: I tested this on chromium as well, both tests done on Arch Linux, error:

pictrs upload:
client.js:2 {state: 'failed', msg: SyntaxError: Unexpected token '<', ")}msg: SyntaxError: Unexpected token '<', ")state: "failed"[[Prototype]]: Object
client.js:2 SyntaxError: Unexpected token '<', ")
(anonymous) @ client.js:2
Promise.then (async)
o.handleImageUpload @ client.js:2
(anonymous) @ client.js:2