this post was submitted on 04 Jul 2023
140 points (98.6% liked)

196

16591 readers
3221 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
140
Lemmy (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
top 6 comments
sorted by: hot top controversial new old
[–] notarobot 60 points 1 year 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 23 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.

[–] [email protected] 6 points 1 year ago

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

[–] [email protected] 15 points 1 year ago

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

[–] Klear 4 points 1 year ago

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

[–] [email protected] 2 points 1 year ago

This post officer, right here