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.
6 Comments
notarobot@lemmy.world · 60 pts · 3y
That's your Android app that's broken. Lemmy is written in Rust, not Java, and fails in all sorts of other ways instead.
tinsuke@lemmy.world · 23 pts · 3y
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.
rubythulhu@lemmy.blahaj.zone · 6 pts · 3y
lemmy itself is clearly trying to tell the user “hey, at least i’m not written in java”
YakTrimmer@beehaw.org · 15 pts · 3y
But Lemmy’s codebase is in Rust. That’s a Java error, so I suspect that’s an Android app error.
Klear@lemmy.world · 4 pts · 3y
Value of type java.lang.String cannot be convereted to JSONObject
wama@lemmy.fmhy.ml · 2 pts · 3y
This post officer, right here