Skip to content

fix: stop retrying 429 responses - #10

Merged
MudassarTariq merged 1 commit into
mainfrom
fix/no-retry-on-429
Nov 12, 2026
Merged

MudassarTariq merged 1 commit into
mainfrom
fix/no-retry-on-429

Conversation

@MudassarTariq

Copy link
Copy Markdown
Member
  • internal/ipgeolocation/errors.go: IsRetryable no longer includes 429; 500, 502, 503 and 504 are still retried.
  • Docs (README.md, docs/configuration.md, docs/troubleshooting.md): retries cover 5xx and network failures; 4xx, including 429, return at once.

The API has no per-second rate limits. A 429 means no credits are left (the free plan's daily credits, or a paid plan's credits with overage off or at its cap), so a retry seconds later cannot succeed; it only delays the error. Source: the status table on https://ipgeolocation.io/documentation/ip-location-api.html.

Tests: go test ./... passes (the retryable table now expects 429 = false).

@MudassarTariq
MudassarTariq merged commit cebd656 into main Nov 12, 2026
2 checks passed
@MudassarTariq
MudassarTariq deleted the fix/no-retry-on-429 branch November 12, 2026 17:58
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.

1 participant