Skip to content

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

Merged
TheTechromancer merged 3 commits into
blacklanternsecurity:devfrom
mukesh-dream11:fix/securitytrails-fail-on-ping-429
Jun 9, 2025
Merged

Don't retry securitytrails ping API on HTTP 429#2490
TheTechromancer merged 3 commits into
blacklanternsecurity:devfrom
mukesh-dream11:fix/securitytrails-fail-on-ping-429

Conversation

@mukesh-dream11

Copy link
Copy Markdown
Contributor

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.
@codecov

codecov Bot commented Jun 5, 2025

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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
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