Summary
In T404204: Investigate options for automatic fallback to FancyCAPTCHA, we implemented a failover mode to load FancyCaptcha in the event that hCaptcha is unreachable. For reasons that are still being investigated, there are intermittent connection errors to load secure-api.js for outbound network calls (see https://logstash.wikimedia.org/goto/3638725468dcb59bc3e917335776afa1 for other examples). We currently set "failover mode" if secure-api.js is unreachable. We should instead tolerate a certain number of errors per period of time.
Acceptance criteria
- the health checker implementation is reworked to accept a threshold of errors per window of time