this post was submitted on 04 Jul 2023
408 points (97.0% liked)

Programmer Humor

32467 readers
1065 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] skullgiver@popplesburger.hilciferous.nl 0 points 1 year ago (1 children)

The server responded with an appropriate HTTP status code and an appropriate MIME type. If the JSON were malformed I'd agree that this is a client issue, but in this case the client failed to deal with the error states of the underlying transport correctly. It shouldn't have even tried to parse text/html as application/json in the first place!

[โ€“] weird_nugget@lemmy.world 1 points 1 year ago

Yeah this makes more sense than my original comment