invariant in client-rpc getResponse() tripped by 502 error #7715
dxptqhtlutehvlyxcmtg
started this conversation in
General
Replies: 1 comment
|
This matches the client parser path. For now, the practical workaround is to make the reverse proxy add a content type on its own error responses, e.g. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Not technically a bug, but this behavior is less than desirable:
getResponse() requires a 'content-type' header.
In the case of a Bad Gateway response from a reverse proxy (header could be missing, in other words), an invariant is thrown which means a developer lacks error context for presenting retry options to the user.
All reactions