Add a generic error message when the error response is not of JSON type
requested to merge gitlab-community/gitlab:438572_Kubernetes_Dashboard_tries_to_parse_HTML_as_JSON_for_failed_K8s_API_queries into master
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA
What does this MR do and why?
Add a generic error message when the error response is not JSON.
Also, add an errored server response content type check before parsing it as JSON.
Update the related pot file.
Closes: #438572
Changelog: changed
Screenshots or screen recordings
Before | After |
---|---|
Edited by 🤖 GitLab Bot 🤖