this post was submitted on 03 Sep 2023
5 points (85.7% liked)

FREEMEDIAHECKYEAH

6 readers
1 users here now

๐Ÿดโ€โ˜ ๏ธ Wiki / ๐Ÿ’ฌ Chat

founded 1 year ago
MODERATORS
5
Error (lemmy.fmhy.net)
submitted 1 year ago* (last edited 1 year ago) by Lolen10@lemmy.fmhy.net to c/freemediaheckyeah@lemmy.fmhy.net
 

I keep getting an error when trying to upload a profile picture or a picture to any post.

This is the error message: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Does anyone have an idea what the problem could be and/or how to fix it?

top 5 comments
sorted by: hot top controversial new old
[โ€“] nullishcat@lemmy.fmhy.net 3 points 1 year ago* (last edited 1 year ago) (2 children)

It's possibly one of two things:

  1. You're trying to upload a file larger than allowed (1MB)
  2. The image service is fucking broken again

If it's the latter then I'm not dealing with that cause holy fucking shit I nearly blew my brains out while trying to troubleshoot the downtime... go upload on imgbb or somewhere else if that's the case

[โ€“] Lolen10@lemmy.fmhy.net 2 points 1 year ago* (last edited 1 year ago) (1 children)

Yesterday I tried uploading an image as big as 218kb when it didn't work. But it seems to work now.

Thanks for your answer :)

BTW. I uploaded a profile image larger than 1MB (it's 1,5 MB). So this limitation doesn't seem to work there? You can try downloading it to see it for yourself. ( https://lemmy.fmhy.net/pictrs/image/1f1650f1-1d1c-4954-ad30-7c9a249fdf71.png?format=png )

[โ€“] nullishcat@lemmy.fmhy.net 1 points 1 year ago (1 children)

I don't know the actual limit, it might be larger. It's not set and it's whatever the default is, which said it's 1MB according to search results.

[โ€“] Ganbat@lemmy.fmhy.net 1 points 1 year ago* (last edited 1 year ago)

The image service was broken when this post was made, but it's working again now. I couldn't upload a profile pic yesterday, but today I had no problem.