Skip to content

web: do not parse failed requests in Apollo Client

Administrator requested to merge vb/apollo-client-fetch into main

Created by: valerybugakov

Context

Throw HTTPStatusError on unsuccessful HTTP requests made by Apollo Client. Closes #39911 (closed)

Test plan

  1. sg start web-standalone.
  2. Open the web application with the k8s API as a backend
  3. See that 401 are thrown before Apollo Client tries to parse HTML responses as JSON.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading