Skip to content
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

adjust string for handling rate limit error #2796

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

nickfyson
Copy link
Contributor

@nickfyson nickfyson commented Mar 6, 2025

This PR adjusts the string used to match rate limit error responses and ensure they're treated as configuration errors.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@Copilot Copilot bot review requested due to automatic review settings March 6, 2025 10:27
@nickfyson nickfyson requested a review from a team as a code owner March 6, 2025 10:27

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR adjusts the error matching string used for detecting API rate limit exceeded errors.

  • Updated error message string in wrapApiConfigurationError to remove a site-specific reference
  • Aims to treat appropriate API errors as configuration errors

Reviewed Changes

File Description
src/api-client.ts Modified error string to handle rate limit errors

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/api-client.ts:252

  • Verify that the new error message string sufficiently covers all expected rate limit error responses. If some responses include additional context such as a site identifier, you may need to adjust the pattern to capture those cases.
e.message.includes("API rate limit exceeded for installation") ||

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@nickfyson nickfyson force-pushed the nickfyson/adjust-rate-error-string branch from ba1abe7 to 7b7ed63 Compare March 6, 2025 10:33
Copy link
Member

@NlightNFotis NlightNFotis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read through the associated issue and agree this is a reasonable adjustment.

@nickfyson nickfyson enabled auto-merge March 6, 2025 10:41
@nickfyson nickfyson disabled auto-merge March 6, 2025 10:41
@nickfyson nickfyson enabled auto-merge March 6, 2025 10:42
@nickfyson nickfyson merged commit 911d845 into main Mar 6, 2025
270 checks passed
@nickfyson nickfyson deleted the nickfyson/adjust-rate-error-string branch March 6, 2025 10:45
@github-actions github-actions bot mentioned this pull request Mar 7, 2025
8 tasks
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.

2 participants