Lemmy is written in rust, that's a java error so the issue lies with the app you're using not Lemmy itself (maybe)
post
I've seen this more times than my own family
Dad, please come back. Mom is hoarding all the meth and Beth new boyfriend isn't even a cartel boss. He's a an accountant for god sake ! AN ACCOUNTANT !
You know at least it printed an error. I hate when things silently swallow errors.
I'm looking at you, Python programmers:
try:
<100 lines of nonsense>
except:
pass
We are not savages now we use
with suppress(Exception):
> 100 lines nonsense
Afaik this is not an error from Lemmy but from nginx, which is not able to relay the request to Lemmy and therefore returns a 502 bad gateway response. Imo this just means the servers are over capacity, so most likely a scaling/infrastructure issue.
I had a quick read of the code and it looks pretty solid to me. Not the most "enterprise" code imaginable, but definitely no code smell or quick hacking job.
that's Jerboa issue but probably because It received something from the server that it shouldn't
No, the server gave a 502 instead of a JSON and Jerboa doesn't handle that gracefully.
Is it a lemmy issue or a jerboa issue?
Serious Answer: This is a Jerboa issue. Lemmy is written in Rust. The error message is a Java error which is what native Android apps use.
I think it's both, actually. Lemmy is often giving html where json is expected, and Jerboa isn't handling the error well.
🤔 The server spits out html when it cannot reach the backend. So one could argue it's a configuration issue because the admin didn't provide enough capacity / didn't set up a proper generic json error for backend failures.
FWIW, Liftoff doesn't handle these super gracefully either.
At any rate I think it's kinda awesome that we get to witness these kinds of infancy problems.
Well, what should Jerboa do? Pretend it received content?
No, it's probably when the app is expecting a json but the server returns an html, which usually happens in case of 502 errors.
If it's Jerboa/Android app issue, why do I get JSON errors using Lemmy on my desktop PC with Firefox? Forgive me if this is a dumb question, I have very little programming knowledge.


top 50 comments