this post was submitted on 09 Dec 2023
622 points (99.1% liked)

Programmer Humor

32361 readers
264 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 38 comments
sorted by: hot top controversial new old
[–] visor841@lemmy.world 67 points 11 months ago

Sounds like a "temporary" error message.

[–] savvywolf@pawb.social 65 points 11 months ago (2 children)

Willing to bet that the backend that they are using doesn't actually give any useful error messages.

[–] RoadArchie@lemmy.ml 28 points 11 months ago

Why use many words when few do trick but for system logs.

[–] GarytheSnail@programming.dev 15 points 11 months ago (2 children)

Would they surface that to the user anyway? That's something to log, not to tell the client that xyz service failed because of error 123.

[–] Johanno@feddit.de 19 points 11 months ago* (last edited 11 months ago) (3 children)

I hate this attitude. Yeah don't give the user stacktraces on error but if you give it a meaningful headline and go in detail, experienced users will be able to deal with the problem if possible. If you go Microsoft-error of mystic ways you will have people Google "unexpected error e34566xce" and they will see that it has 10 possible reasons so you don't know what even went wrong.

[–] azertyfun@sh.itjust.works 9 points 10 months ago

Anyone who says error codes shouldn't bubble up to the user are incompetent. Either because an incompetent PM infantilizes their users, or more likely because incompetent teams don't/won't take an extra 10 minutes to do proper error handling (and they suffer from this as well since they're the ones who spend hours deciphering the result of a try {} catch(_) { error("we did a fucky wucky uwu") }).

[–] GarytheSnail@programming.dev 4 points 10 months ago* (last edited 10 months ago)

There's nothing a user is going to be able to do if this is a problem with the backend. The person I replied to did specify backend, right?

[–] MonkderZweite@feddit.ch 3 points 11 months ago (1 children)

Thin line between giving useful error messages and more attack surface.

[–] Johanno@feddit.de 5 points 11 months ago (1 children)

If your code gives attack surface by information about what went wrong maybe you should not even deploy anything. If your code needs to be secret to be secure your code is anything but secure.

[–] MonkderZweite@feddit.ch 4 points 10 months ago

Not code but internet. A often seen error is letting Appache/Nginx display their name & version in 403/404 pages. First step in planning an attack.

[–] PixxlMan@lemmy.world 12 points 11 months ago* (last edited 11 months ago) (1 children)

No, please tell the user. They've got their big boy pants on and can handle seeing one or two weird squiggles in the worst case, and might be able to actually diagnose and fix the issue themselves (without having to go through support) in the best case.

[–] max@feddit.nl 12 points 11 months ago

If it’s a backend/service issue, tell the user, but the bare minimum. You shouldn’t disclose too much info about your system to the end user (think of stack traces, error codes unique to some dependency you’re using) as it may give an attacker some valuable information.

[–] shiveyarbles@beehaw.org 50 points 11 months ago

Looks up error EC10005..

"Network failed to do network thing"

Ok...

[–] Agent641@lemmy.world 34 points 11 months ago

Network failed because net didnt work.

[–] PeriodicallyPedantic@lemmy.ca 32 points 11 months ago* (last edited 11 months ago)

Tbf if the client fails to reach the server, there isn't much more detail they can provide. At least it brings a little levity

[–] stewie410@programming.dev 29 points 11 months ago (2 children)

Had the displeasure of using the modern EA app the other week -- completely refuses to launch my copy of Jedi: Fallen Order in the foreground after a single play-session (Steam -> EA just doesn't work for some people).

[–] RoadArchie@lemmy.ml 6 points 11 months ago

jesus. Talk about bad software...

[–] Mixel@feddit.de 3 points 10 months ago (1 children)

My friend downloaded the friend pass of it takes two and ea just said you don't own the game and refused to launch the game... Appearntly there's a fix to download a free game and then it works again but wtf the support and moderates just closed the thread where this issue got raised the first time without giving a universal solution on what to try Tldr EA is the worst

[–] stewie410@programming.dev 2 points 10 months ago

I had the same problem with Fallen Order the first day; the workaround in that particular case was to launch the game's executable directly; which let me play that one, single time. A few days later and both the original workaround (and others) & no-workarounds caused the game to launch in the background, with no way to force it to the foreground.

In Fallen Order's case specifically; there appeared to be a launcher-specific wrapper executable, and the game itself. When the workaround stopped working, the launcher-specific wrapper is what was getting ran in the background; but the game itself never actually appeared. Additionally, reinstalling the game several times did not resolve any issue; nor other troubleshooting steps from EA.

Origin was also a pretty crap piece of software (compared to Steam, anyway); but this is a new low from EA, imo. Its a shame too, because I liked what I got to see in Fallen Order, especially recently getting into souls games.

[–] NocturnalEngineer@lemmy.world 24 points 11 months ago

The network... In the cloud... It does mysterious things!

[–] pomodoro_longbreak@sh.itjust.works 19 points 10 months ago* (last edited 10 months ago) (1 children)

I can just imagine something in the middle being like

`We couldn't log you in because ${getReason(e) || 'the network failed to do its network thing'}.`
[–] glitches_brew@lemmy.world 3 points 10 months ago (1 children)

100% this is what happened. Also, it's its not it's, right?

[–] pomodoro_longbreak@sh.itjust.works 1 points 10 months ago

it’s its not it’s, right?

I always get tripped up on this case. What's shown in the picture is correct, though you're applying the rules of English grammar very logically, the apostrophe in it's is only for contraction, not possession. That may go out the window if someone uses it as a pronoun though, idk.

[–] HiddenLayer5@lemmy.ml 18 points 10 months ago* (last edited 10 months ago) (3 children)

If all the corporations can just stop trying to be cute in their error messages, that would be great. This is literally worse than "ERROR: Unknown Error" because this goes out of its way to taunt you while still giving you no actionable information.

[–] pomodoro_longbreak@sh.itjust.works 7 points 10 months ago* (last edited 10 months ago)

I will say that at least it has an error code. So you can actually look it up

[–] ILikeBoobies@lemmy.ca 6 points 10 months ago

I see nothing wrong with it

How can the client know the back end issue

And

What’s the point of giving it to the end user

Any fix would be the user contacting the company and the error code is there. Follow ups would be a traceroute

[–] MrScottyTay@sh.itjust.works 4 points 10 months ago (1 children)

Depends if this cure message is a psuedonym for the real message. Kind of you have a different quip for each one, then reporting it the Devs will know what the issue is but any bad actors won't be able to try and discern cause and effect from any exploits they are trying (or at least make it harder)

[–] 0laura@lemmy.dbzer0.com 1 points 4 weeks ago (1 children)

security through obscurity is not security.

[–] MrScottyTay@sh.itjust.works 2 points 4 weeks ago

Didn't say it was the best practice, but it is a practice

[–] tsonfeir@lemm.ee 12 points 11 months ago (2 children)

All my error messages are haikus.

[–] blackluster117@possumpat.io 6 points 11 months ago (1 children)

I feel like this takes the edge off of getting an error. Or, maybe it makes it worse. I like to think it's more calming.

[–] tsonfeir@lemm.ee 7 points 11 months ago (1 children)

In code, a misstep, Life's work fades into the void, Silent echoes mourn.

[–] blackluster117@possumpat.io 4 points 10 months ago

Yeah, that was nice. Definitely more calming.

[–] Resol@lemmy.world 3 points 10 months ago (1 children)

We couldn't log in.

Net didn't do network thing.

Please try again soon.

[–] tsonfeir@lemm.ee 2 points 10 months ago

Keys not aligning,

Username, password astray,

Entry gate stays closed.

[–] bstix@feddit.dk 12 points 11 months ago

I'd like that to be an acceptable autoreply to all the mails from my boss.

[–] lseif@sopuli.xyz 8 points 11 months ago

at least theres an error code?

[–] CodexArcanum@lemmy.world 6 points 11 months ago

Wibbly-wobbly nerky-networky things