Skip to content

Silence repeated rate limit and connection errors in OpenAI utils - #22

Merged
hemanth-asirvatham merged 1 commit into
mainfrom
silence-redundant-network-error-messages
Feb 7, 2026
Merged

Silence repeated rate limit and connection errors in OpenAI utils#22
hemanth-asirvatham merged 1 commit into
mainfrom
silence-redundant-network-error-messages

Conversation

@hemanth-asirvatham

Copy link
Copy Markdown
Collaborator

Motivation

  • Reduce noisy repeated stack traces for common transient errors (rate limit, connection, and timeouts) while preserving first-occurrence visibility.
  • Keep users informed via existing periodic status updates rather than spamming logs on every failure.

Description

  • Added one-time logging flags (first_rate_limit_logged, first_connection_logged, first_timeout_logged) and helpers (_log_rate_limit_once, _log_connection_once, _log_embedding_rate_limit_once, _log_embedding_connection_once, _log_embedding_timeout_once) to track and log the first occurrence of rate limit/connection/timeout errors.
  • Replaced noisy logger.warning/_emit_first_error calls in get_all_responses handlers for RateLimitError and APIConnectionError with the new one-time logging helpers so subsequent occurrences are logged at debug level.
  • Applied the same first-occurrence silencing behavior to the embedding worker in get_all_embeddings for timeouts, rate limits, and connection errors.

Testing

  • No automated tests were run for this change.

Codex Task

@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@hemanth-asirvatham
hemanth-asirvatham merged commit e39bfcb into main Feb 7, 2026
1 check failed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant