Closed friedrichtroescher closed 2 weeks ago
please, check this issue: https://github.com/krakend/krakend-circuitbreaker/issues/12
An issue like this already exists, please follow it in the other thread
This is an automated comment. Responding to the bot or mentioning it won't have any effect
The documentation has been adjusted for the next release to make it more clear.
Environment info:
Describe the bug If the python backend causes a timeout, the circuit breaker opens as it should. If the backend returns a status code which is not 20x (as described in the official documentation), the circuit breaker is not triggered.
Your configuration file:
To replicate, you can clone the repo https://github.com/friedrichtroescher/testkrakend
krakend.json:
app.py:
requirements.txt:
Dockerfile:
Commands used How did you start the software?
Expected behavior After the third curl within 60 seconds, the circuit breaker should open.
Logs
Additional context It can be validated that the circuit breaker can open by killing the python backend. Oddly, this causes an error which does trigger the circuit breaker.