twofactorauth
twofactorauth copied to clipboard
External tests fail (curl exit code 22 / 500 rate limit exceeded)
- [x] I have searched open issues and pull requests. The issue I'm creating is not a duplicate of an existing open issue or pull request.
Information about the bug:
Bug description:
The External tests job uses curl -s --fail-with-body which means that when the server returns:
< HTTP/2 500
< date: Tue, 02 Dec 2025 12:52:58 GMT
< content-type: text/plain; charset=utf-8
< content-length: 309
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-content-type-options: nosniff
< vary: accept-encoding
< report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=mrYJLKgvrmGa7aPgWQq1L%2BxGx5%2Bj8eb8AFt5E3T2FXpFM53HI9TBIkE7522jBUAoN2k3OUXtwXAySqB970fVVIRMhPKW8ZuFtV%2FFgdVMVYvsPA3lPIMXIg%3D%3D"}]}
< nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
< server: cloudflare
< cf-ray: 9a7af6e7edaaa226-YYZ
< alt-svc: h3=":443"; ma=86400
<
::warning:: Internal error: {"message":"API rate limit exceeded for 108.162.241.117. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
the test fails
Bug reproduction: https://github.com/2factorauth/twofactorauth/actions/runs/19858952282/job/56903838527
Impacted devices:
Expected behavior:
- don't use
--fail-with-bodywithout some extra error handling - use delay/retry
Additional information: