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
I've downstream API which is throwing error and another API which is calling this endpoint through HTTPClient. I am setting ExceptionsAllowedBeforeBreaking = 2 and after two consecutive errors circuit breaker should stop calling downstream endpoint. But we keep on getting same exception thrown by downstream endpoint.
Expected behavior
Circuit breaker should work for ExceptionsAllowedBeforeBreaking property when it exceeds more than defined errors.
Actual behavior
Getting same error from downstream API, looks like circuit breaker doesn't work here.
Attaching GIF for reference.
Here Downstream API have endpoint which throws error and Debugging.API is consuming downstream API through HttpClient and Polly.
Just create 2 API, call endpoint of one API through another using HTTPClient and setup ExceptionsAllowedBeforeBreaking = 2. Make sure to through exception from downstream API and see circuitbreaker not working.
Exception(s) (if any)
No response
Polly version
8.0.0
.NET Version
7.0
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi,
I've downstream API which is throwing error and another API which is calling this endpoint through HTTPClient. I am setting ExceptionsAllowedBeforeBreaking = 2 and after two consecutive errors circuit breaker should stop calling downstream endpoint. But we keep on getting same exception thrown by downstream endpoint.
Expected behavior
Circuit breaker should work for
ExceptionsAllowedBeforeBreaking
property when it exceeds more than defined errors.Actual behavior
Getting same error from downstream API, looks like circuit breaker doesn't work here.
Attaching GIF for reference.
Here Downstream API have endpoint which throws error and Debugging.API is consuming downstream API through HttpClient and Polly.
Steps to reproduce
Bug can be replicated by https://ocelot.readthedocs.io/en/latest/features/qualityofservice.html
Just create 2 API, call endpoint of one API through another using HTTPClient and setup
ExceptionsAllowedBeforeBreaking = 2
. Make sure to through exception from downstream API and see circuitbreaker not working.Exception(s) (if any)
No response
Polly version
8.0.0
.NET Version
7.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: