this post was submitted on 04 Jul 2023
139 points (100.0% liked)

196

16488 readers
1534 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
139
Lemmy rule (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 1 year ago

Yup, very likely that.

My crystal ball says that your client is trying to parse the response of a failed request as it was a successful one.

A successful request would return a valid JSON object, while a failed on would probably return an error message.

Report a bug with your client devs saying that they should check that request's status code says it's successful before trying to parse its response as JSON.