invariant in client-rpc getResponse() tripped by 502 error #7715
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. |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions