Anyone else getting a JSON Error trying to post?

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Anyone else getting this when trying to link an external file?

12 points · 15 comments · view on lemmy.world

15 Comments

nsfwmind@lemmynsfw.com · 3 pts · 3y

Yes I've been unable to post anything this week. Both Firefox on Mac and Safari on iOS.

rustling_leaves@lemmynsfw.com · 3 pts · 3y

Use dev tools in your browser to look at the actual error message

In my case it was because of the file size, under 1MB seems to be working

snowportal@lemmynsfw.com · 2 pts · 3y (1 reply)

Yeah. Was trying to upload image post and got error. It worked using a different image host.

Edit: Looks like someone opened an issue ticket on github https://github.com/LemmyNet/lemmy/issues/3359

Filth@lemmynsfw.com · 1 pts · 3y

Looks like a fix is mentioned in there as well just not sure if it applies to us or not.

b9999998@lemmynsfw.com · 2 pts · 3y

For me, it seems random regardless of Opera or Firefox browser (but posting seems to work OK if I post images less than 1MB - just a guess as I haven't really tested the limits). I usually do direct image uploads to Lemmy rather than external URL links.

Update: 1mb file size is the limit that determines w!Heather you get the error or not.

mr_nswf@lemmynsfw.com · 2 pts · 3y

Yes and when trying to login in different browsers than Firefox.

chavposting@lemmynsfw.com · 1 pts · 3y

Getting this when trying to log in on Firefox.

No issues on Chrome.

scabrous_leper@lemmynsfw.com · 1 pts · 3y

YEP

mr_nswf@lemmynsfw.com · 1 pts · 3y

It seems to work in Chromium, and when it fucks up in chromium you can delete the data of the app (cache) or reset to default and then it seems to work again.

___@lemmynsfw.com · 1 pts · 3y

It's likely a caching issue considering how random it seems to be. Do a CTRL+F5 and try again.

MikeyMongol@lemmynsfw.com · 1 pts · 3y

I'm getting this on chrome on my Android phone, but not desktop.

PlushySD@lemmynsfw.com · 1 pts · 3y

I was using the Vivaldi browser and got the error also. If the image is smaller than 1 megabyte, it got through tho.