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
Desktop (please complete the following information):
OS: macOS
Version: 1.43.1
Additional context
SupergraphResponse does trigger.
The aim of this specific situation is to enable circuit breaking via coprocessor, but without knowing the status of requests to subgraphs, it's nontrivial to track if a response comes back or not for a given request. Firing back with the errored message would trivialize this.
The text was updated successfully, but these errors were encountered:
as said in chat: this is probably due to the timeout returning a Err<BoxError> instead of a Ok<subgraph::Response> containing the error, because then the coprocessor plugin transmits the error directly instead of passing it through the coprocessor
Describe the bug
Given a subgraph that times out using the
traffic_shaping
plugin, it will not trigger a request to a coprocessor for theSubgraphResponse
stage.This seems related to #4590, but for the subgraph hooks.
To Reproduce
Enable an arbitrarily low timeout and a coprocessor enabled:
And have a subgraph that forces the timeout, you'll get the logs noted in Output.
Expected behavior
To get a
SubgraphResponse
request to the coprocessor.Output
Example response from router:
Log out from coprocessor for debugging:
Where it emits the stage + headers.
Desktop (please complete the following information):
Additional context
SupergraphResponse
does trigger.The aim of this specific situation is to enable circuit breaking via coprocessor, but without knowing the status of requests to subgraphs, it's nontrivial to track if a response comes back or not for a given request. Firing back with the errored message would trivialize this.
The text was updated successfully, but these errors were encountered: