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:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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!
Yeah this makes more sense than my original comment