Skip to content

Don't retry securitytrails ping API on HTTP 429 #2490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

mukesh-dream11
Copy link

securitytrails.com's ping API returns 429 if you've exceeded the quota for the API key. This delays the setup phase by 90 seconds. This fix introduces a ping_retry_on_http_429 flag which can be set to False to avoid this behaviour. The flag is set to False on the securitytrails module.

securitytrails.com's ping API returns 429 if you've exceeded the quota
for the API key. This delays the setup phase by 90 seconds. This fix
introduces a ping_retry_on_http_429 flag which can be set to False
to avoid this behaviour. The flag is set to False on the securitytrails
module.
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93%. Comparing base (93b6243) to head (5118cdc).
Report is 19 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #2490   +/-   ##
=====================================
- Coverage     93%     93%   -0%     
=====================================
  Files        400     398    -2     
  Lines      33093   33063   -30     
=====================================
- Hits       30613   30584   -29     
+ Misses      2480    2479    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TheTechromancer
Copy link
Collaborator

Thanks for the PR. This is a good default to have, so I went ahead and updated all the modules to use it.

@TheTechromancer TheTechromancer self-assigned this Jun 5, 2025
@TheTechromancer TheTechromancer requested a review from liquidsec June 5, 2025 18:55
@TheTechromancer TheTechromancer merged commit 751d9e1 into blacklanternsecurity:dev Jun 9, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants