You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey team!
We wish to catch 401 errors using a fn subgraph_service(service, subgraph)map_response handle however the response object does not expose status or status_code, and we're left unpacking the generated errors code and checking for SUBREQUEST_HTTP_ERROR.
Describe alternatives you've considered
We're checking for the presence of in response.body.errors[].message 401 and in response.body.errors[].extensions.code SUBREQUEST_HTTP_ERROR.
The text was updated successfully, but these errors were encountered:
Hey team!
We wish to catch 401 errors using a
fn subgraph_service(service, subgraph)
map_response
handle however theresponse
object does not exposestatus
orstatus_code
, and we're left unpacking the generated errors code and checking forSUBREQUEST_HTTP_ERROR
.Describe alternatives you've considered
We're checking for the presence of in response.body.errors[].message
401
and in response.body.errors[].extensions.codeSUBREQUEST_HTTP_ERROR
.The text was updated successfully, but these errors were encountered: