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!
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