not sure if the error is on my end, but when I try to add an icon or a banner, this error shows up

SyntaxError: Unexpected token ‘<’, “<html> <he”… is not valid JSON

How do I fix this?

    • JohnnyEnzyme@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      I’m having a similar issue here with avatar upload, but in my case I get “Unexpected token ‘R’ Request er is not valid JSON.”

      I did resize the image downwards multiple times, in JPG format. Last one I tried was 100x100 in size, 15k, and still got the same message.

      I’d also like to know what the visual limits are for avatars, and visual / size limits for banners. Thanks!

      EDIT: If it helps, I found this dev / admin response.

      • sunaurus@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 years ago

        Hey, can you share the image that you’re trying to upload? You could e-mail it to me at <email removed>

        I’d also like to know what the visual limits are for avatars, and visual / size limits for banners. Thanks!

        Generally, images that are too big in dimensions should get resized automatically.