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

196

17030 readers
1052 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS
132
Lemmy rule (lemmy.world)
submitted 2 years ago* (last edited 2 years ago) by ShaggyDemiurge@lemmy.blahaj.zone to c/196@lemmy.blahaj.zone
 
top 6 comments
sorted by: hot top controversial new old
[–] notarobot@lemmy.world 55 points 2 years ago (2 children)

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 22 points 2 years 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.

[–] rubythulhu@lemmy.blahaj.zone 6 points 2 years ago

lemmy itself is clearly trying to tell the user “hey, at least i’m not written in java”

[–] YakTrimmer@beehaw.org 14 points 2 years ago

But Lemmy’s codebase is in Rust. That’s a Java error, so I suspect that’s an Android app error.

[–] Klear@lemmy.world 3 points 2 years ago

Value of type java.lang.String cannot be convereted to JSONObject

[–] wama@lemmy.fmhy.ml 2 points 2 years ago

This post officer, right here