-25
submitted 2 years ago by [email protected] to c/[email protected]

When I am trying to post a comment, often times I will get this JSON error “unexpected token <”. I wonder if the call is erroring out on the server side and you’re getting an HTML error page back?

Odd thing is that 9 times out of 10, when this happens, the comment will still post. Until i discovered this, I was repeatedly hitting “submit” (since after the error you get sent right back to the comment edit dialog) and repeatedly posting! Now I can identify Memmy users by their repeat comments 😅

Is this a known issue?

I’m on lemmy.world and so it might happen more frequently for me as their servers have been going through some stuff lately…

top 3 comments
sorted by: hot top new old
[-] [email protected] 1 points 2 years ago* (last edited 2 years ago)

I have the same issue. Sometimes comment was posted, sometimes not.

I actually had that error when submitting this comment. Keep submitting will eventually work

Edit: maybe network/instance issue??

[-] [email protected] 0 points 2 years ago

If the comment posted, it likely didn't fail on the backend. It likely is an error parsing the response json.

[-] [email protected] 1 points 2 years ago

Well that’s my point - the response isn’t JSON, it’s HTML. “<“ would always be the first character of an HTML document. Probably the 502 errors that have been plaguing the larger instances.

this post was submitted on 03 Jul 2023
-25 points (6.9% liked)

Memmy - An iOS client for Lemmy

5419 readers
1 users here now

Download on the App Store

View on GitHub

Join the Discord

Code of Conduct

founded 2 years ago
MODERATORS