Lemmy

3 years ago by themusicman to c/programmerhumor

rimorso 138 points 3 years ago

Lemmy is written in rust, that's a java error so the issue lies with the app you're using not Lemmy itself (maybe)

path: 0 799181, hotness: undefined, score: 138, children: 25
Atemu 95 points 3 years ago

The cause is a 502 from lemmy.

Jerboa's handling of that error is also terrible but that's another issue.

path: 0 799181 801627, hotness: undefined, score: 95, children: 4
4am 8 points 3 years ago

Memmy doesn’t do well with it either.

Of course it doesn’t bode well for the instance itself that it’s throwing so many…but it’s unclear if that’s an operator problem or a code base problem.

path: 0 799181 801627 826234, hotness: undefined, score: 8, children: 3
T156 6 points 3 years ago

It could also just be a server load issue.

Lemmy.world, the community the instance is hosted on, has been having a few issues between the 0.18.1 update, and the amount of users on the platform.

path: 0 799181 801627 826234 834681, hotness: undefined, score: 6, children: 2
Marxine 8 points 3 years ago

Mostly the user count at this point, although things have become more stable the last few hours

path: 0 799181 801627 826234 834681 835539, hotness: undefined, score: 8, children: 1
Binderfullofpizza 7 points 3 years ago

Is there a good Lenny app because so far wefwef hasn’t been great for me.

path: 0 799181 805716, hotness: undefined, score: 7, children: 19
yads 16 points 3 years ago

Jerboa or just in the browser. Honestly though most people's issues are likely to be because they joined a huge instance which is falling over due to load. Consider making a new account on a smaller instance.

path: 0 799181 805716 806992, hotness: undefined, score: 16, children: 0
LeylaaLovee 10 points 3 years ago

Liftoff is the best I've found so far. Waiting for Sync to come though

path: 0 799181 805716 825614, hotness: undefined, score: 10, children: 2
kras 6 points 3 years ago

Same. RIP sync, long live sync!

path: 0 799181 805716 825614 833707, hotness: undefined, score: 6, children: 1
klyde 1 point 3 years ago

Hopefully it doesn't take long. These other apps aren't bad but they aren't great either.

path: 0 799181 805716 825614 833707 875995, hotness: undefined, score: 1, children: 0
balls_expert 6 points 3 years ago

Thunder but features aren't all there

path: 0 799181 805716 806730, hotness: undefined, score: 6, children: 0
Sylocule 5 points 3 years ago path: 0 799181 805716 807018, hotness: undefined, score: 5, children: 0
foxrumor 5 points 3 years ago

Wefwef has been the best for me so far. I'm a previous Boost for Reddit user, so I'm still waiting for their official Lemmy release and then I'll switch.

path: 0 799181 805716 818915, hotness: undefined, score: 5, children: 0
_thisdot 4 points 3 years ago

Can you explain why? Are you using wefwef on Android?

path: 0 799181 805716 811075, hotness: undefined, score: 4, children: 7
Binderfullofpizza 3 points 3 years ago

I’m using it on iOS and don’t get me wrong the app looks beautiful. I’m finding issues with communities not loading posts, comments or general sync issues. I have an issue where trying to reply to a comment would overlay the comments over the textfield.

path: 0 799181 805716 811075 825517, hotness: undefined, score: 3, children: 6
RoundSparrow 6 points 3 years ago

I’m finding issues with communities not loading posts, comments or general sync issues.

Lemmy's Rust code uses an ORM called Diesel that masks the SQL statements and you really have to watch the PostgreSQL server independently to verify that the SQL isn't doing wild things like loading thousands of records when you only needed 3. Just today people are finally sharing some information out of the big servers (lemmy.world) as to what PostgreSQL side says is actually happening. Hopefully the biggest mistakes are going to get cleaned up quickly.

path: 0 799181 805716 811075 825517 835165, hotness: undefined, score: 6, children: 0
wason 3 points 3 years ago

That might be a server issue. Lemmy.world is still having performance issues and just like the picture in this post we are all seeing many errors often.

path: 0 799181 805716 811075 825517 827130, hotness: undefined, score: 3, children: 1
Distributed 1 point 3 years ago

That sounds like a server issue. Try a smaller server

path: 0 799181 805716 811075 825517 892852, hotness: undefined, score: 1, children: 2
uthredii 3 points 3 years ago

I am quite liking liftoff. It has a slightly different layout to wefwef and you can customize it a bit if you don't like the default colours.

path: 0 799181 805716 826623, hotness: undefined, score: 3, children: 0
brettrick 3 points 3 years ago path: 0 799181 805716 814227, hotness: undefined, score: 3, children: 1
Binderfullofpizza 1 point 3 years ago

Thanks I’ll give that a shot.

path: 0 799181 805716 814227 825214, hotness: undefined, score: 1, children: 0
dukk 1 point 3 years ago

What’s so bad with wefwef? I’m using it righty now and enjoying it.

(Also, Memmy is another great Apollo-based app.)

path: 0 799181 805716 875524, hotness: undefined, score: 1, children: 0
Severopol 55 points 3 years ago

I've seen this more times than my own family

path: 0 808455, hotness: undefined, score: 55, children: 2
Diabolo96 11 points 3 years ago

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 !

path: 0 808455 816561, hotness: undefined, score: 11, children: 0
Diabolo96 1 point 3 years ago

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 !

path: 0 808455 816558, hotness: undefined, score: 1, children: 0
csm10495 46 points 3 years ago

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
path: 0 800149, hotness: undefined, score: 46, children: 3
rimorso 33 points 3 years ago

We are not savages now we use

with suppress(Exception):
    > 100 lines nonsense
path: 0 800149 801492, hotness: undefined, score: 33, children: 1
csm10495 31 points 3 years ago

path: 0 800149 801492 801556, hotness: undefined, score: 31, children: 0
dandroid 1 point 3 years ago

I am in the process of fixing a bug at work where pretty much every method has a try(Exception e){...}catch{LOGGER.error(...)}. The method calling my team's method needs to know when an interrupted exception is thrown. So far I have fixed this in 10 different methods, and we keep finding more. It's like playing whack-a-mole.

path: 0 800149 813055, hotness: undefined, score: 1, children: 0
shrugal 45 points 3 years ago

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.

path: 0 799354, hotness: undefined, score: 45, children: 1
KD_14 3 points 3 years ago

I read a couple PRs and it seems like the are rejecting the more hacky stuff.

path: 0 799354 812702, hotness: undefined, score: 3, children: 0
ggnoredo 25 points 3 years ago

that's Jerboa issue but probably because It received something from the server that it shouldn't

path: 0 800210, hotness: undefined, score: 25, children: 6
Atemu 25 points 3 years ago

No, the server gave a 502 instead of a JSON and Jerboa doesn't handle that gracefully.

path: 0 800210 801401, hotness: undefined, score: 25, children: 4
ggnoredo 4 points 3 years ago

Actually i was trying to say similar issue

path: 0 800210 801401 801526, hotness: undefined, score: 4, children: 0
KD_14 0 points 3 years ago

Seems like the 4 apps I use all have the same issue though which makes me wonder if it's something in Lemmy causing the issue (not the apps).

path: 0 800210 801401 812595, hotness: undefined, score: 0, children: 2
Atemu 11 points 3 years ago

Well, Lemmy shouldn't 502 in the first place. That's the root cause. The apps should handle that gracefully though, especially given how commonly Lemmy throws a 502.

path: 0 800210 801401 812595 815938, hotness: undefined, score: 11, children: 0
Atemu 1 point 3 years ago
path: 0 800210 801401 812595 816177, hotness: undefined, score: 1, children: 0
Distributed 1 point 3 years ago
path: 0 800210 894125, hotness: undefined, score: 1, children: 0
Achyu 20 points 3 years ago

Is it a lemmy issue or a jerboa issue?

path: 0 797739, hotness: undefined, score: 20, children: 26
buda 45 points 3 years ago

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.

path: 0 797739 798002, hotness: undefined, score: 45, children: 10
Serinus 22 points 3 years ago

I think it's both, actually. Lemmy is often giving html where json is expected, and Jerboa isn't handling the error well.

path: 0 797739 798002 798709, hotness: undefined, score: 22, children: 4
usernotfound 20 points 3 years ago

🤔 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.

path: 0 797739 798002 798709 798710, hotness: undefined, score: 20, children: 0
nseguin 5 points 3 years ago

Well, what should Jerboa do? Pretend it received content?

path: 0 797739 798002 798709 798719, hotness: undefined, score: 5, children: 2
entropicdrift 24 points 3 years ago

It should display a human-readable error message instead of the raw one.

path: 0 797739 798002 798709 798719 799816, hotness: undefined, score: 24, children: 0
Atemu 17 points 3 years ago

Take it as an error, tell the user about it and then retry with exponential back-off.

path: 0 797739 798002 798709 798719 801411, hotness: undefined, score: 17, children: 0
MysteriousSophon21 8 points 3 years ago

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.

path: 0 797739 798002 800423, hotness: undefined, score: 8, children: 1
barsoap 1 point 3 years ago

You really shouldn't be expecting any content type when you get any code but a 200. If anything you should expect HTML, then, possibly plain text.

path: 0 797739 798002 800423 811941, hotness: undefined, score: 1, children: 0
Morcyphr 2 points 3 years ago

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.

path: 0 797739 798002 810593, hotness: undefined, score: 2, children: 0
nothacking 1 point 3 years ago

No, this is a lemmy issue. The API specification specifies a JSON response, and the server randomly provides HTML, this is a bug in the server. I agree that Jebora should retry in the case of a network failure (timeout, 4xx staus codes...) but it should not have to retry in a case of a server that is not folowing the standard.

path: 0 797739 798002 801430, hotness: undefined, score: 1, children: 1
mc1472 1 point 3 years ago

lemmy does not return 502 error codes because 502 means "bad gateway" and lemmy is not acting as a gateway, nginx is. An nginx sends the html. All apps should check the status code for codes like this one that don't come from apps.

path: 0 797739 798002 801430 816190, hotness: undefined, score: 1, children: 0
weird_nugget 4 points 3 years ago

I would say Lemmy issue. This is probably a default 502 internal sever error response (which I've been getting repeatedly from lemmy.world). Jerboa (I don't use it btw) is only trying to parse the expected json response. Yes the app could handle the error more gracefully but if Lemmy didn't respond with an error jerboa wouldn't need to.

path: 0 797739 797901, hotness: undefined, score: 4, children: 11
bappity 7 points 3 years ago

personally I'd say it's a Jerboa thing. the app should retry loading because sometimes I refresh after this happening and it immediately loads the proper content.

with all the different instances this sort of thing has to be kept in mind

path: 0 797739 797901 798099, hotness: undefined, score: 7, children: 5
angrymouse 10 points 3 years ago

Just retry is usually a bad ideia, specially that this problem is probably an overload, just adding retries can makes the problem.even worse with the app ddosing the server

path: 0 797739 797901 798099 798967, hotness: undefined, score: 10, children: 2
lemann 2 points 3 years ago

just adding retries can makes the problem.even worse with the app ddosing the server

Twitter has some experience with that

path: 0 797739 797901 798099 798967 810448, hotness: undefined, score: 2, children: 0
bappity 2 points 3 years ago

true

path: 0 797739 797901 798099 798967 803301, hotness: undefined, score: 2, children: 0
nothacking -1 points 3 years ago

Lemmy realy should not randomly emit errors for no reason, there should be no need for retries in this case. If the specification specifies a JSON response, and the server randomly provides HTML, that is a bug in the server.

path: 0 797739 797901 798099 799066, hotness: undefined, score: -1, children: 1
r00ty 7 points 3 years ago

When you get a 502 error, that's not coming from lemmy, it's coming from nginx. If you're saying that nginx should send any error data along with the status in json if the accept headers require it, that's a task for nginx but it wouldn't happen in this case anyway since the json wouldn't be what they were expecting anyway. The app should be handling non success responses better is the point being made here.

path: 0 797739 797901 798099 799066 801929, hotness: undefined, score: 7, children: 0
skullgiver 2 points 3 years ago
path: 0 797739 797901 813086, hotness: undefined, score: 2, children: 1
weird_nugget 1 point 3 years ago

Yeah this makes more sense than my original comment

path: 0 797739 797901 813086 924599, hotness: undefined, score: 1, children: 0
nothacking 1 point 3 years ago

Lemmy realy should not randomly emit errors for no reason, there should be no need for retries in this case. If the specification specifies a JSON response, and the server randomly provides HTML, that is a bug in the server.

path: 0 797739 797901 799072, hotness: undefined, score: 1, children: 2
SuperIce 6 points 3 years ago

The error is not being emitted by Lemmy though. The 502 error message is returned to the client by nginx when the Lemmy server doesn't respond within the a certain time.

path: 0 797739 797901 799072 800099, hotness: undefined, score: 6, children: 1
nothacking 1 point 3 years ago

Well in that case the instance is broken.

path: 0 797739 797901 799072 800099 817775, hotness: undefined, score: 1, children: 0
MrScottyTay 3 points 3 years ago

Definitely jerboa

path: 0 797739 798021, hotness: undefined, score: 3, children: 0
victron 2 points 3 years ago
path: 0 797739 798413, hotness: undefined, score: 2, children: 0
victron 2 points 3 years ago
path: 0 797739 798402, hotness: undefined, score: 2, children: 0
Exatron 15 points 3 years ago

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

path: 0 827628, hotness: undefined, score: 15, children: 0
WolfhoundRO 7 points 3 years ago

I've seen this on both Jerboa and Connect. And even just now

path: 0 803794, hotness: undefined, score: 7, children: 0
davidgro 5 points 3 years ago

path: 0 798606, hotness: undefined, score: 5, children: 0
Gruntyfish 3 points 3 years ago

Lmao I got a 504 when trying to open this post

path: 0 799115, hotness: undefined, score: 3, children: 0
nouman 0 points 3 years ago path: 0 798787, hotness: undefined, score: 0, children: 0
programmerhumor
programmerhumor

@lemmy.ml

login for more options
43205
1614
1357

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

go to feed...