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.

  • Kaelygon@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    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