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
Feature request: Need a separate treatment of errors returned by the hystrix command due to illegal arguments or non-system failures, similar to HystrixBadRequestException in the Java version of hystrix
Workaround:
Make a channel badRequests before engaging hystrix.Go
Inside the user-defined hystrix command, route appropriate errors to badRequests instead of returning them
After command execution, handle errors from badRequests in addition to those returned by hystrix.Go
Proposal:
Create an interface badRequest in hystrix
Add an exported method to be used inside hystrix commands that converts an error to a type that implements both error and badRequest interfaces so that the commands will return it instead of the original error
badRequest errors neither count against the failure metrics nor trigger fallback logic
After hystrix.Go execution, user's code can pull all errors from the same channel and if necessary, can treat badRequest errors separately
The text was updated successfully, but these errors were encountered:
Feature request: Need a separate treatment of errors returned by the hystrix command due to illegal arguments or non-system failures, similar to HystrixBadRequestException in the Java version of hystrix
Workaround:
badRequests
before engaginghystrix.Go
badRequests
instead of returning thembadRequests
in addition to those returned byhystrix.Go
Proposal:
badRequest
in hystrixerror
to a type that implements botherror
andbadRequest
interfaces so that the commands will return it instead of the original errorbadRequest
errors neither count against the failure metrics nor trigger fallback logichystrix.Go
execution, user's code can pull all errors from the same channel and if necessary, can treatbadRequest
errors separatelyThe text was updated successfully, but these errors were encountered: