Skip to content

Conversation

@phaym
Copy link
Contributor

@phaym phaym commented Nov 19, 2025

Correctly handle config fetching errors for local bucketing: when sdkKey is incorrect and 401 or 403 received, polling should stop.

Previously these specific errors were not handled since they were not thrown from config_client.py on get_config()

@phaym phaym changed the title fix: handle local bucketing errors fix: stop polling on config fetch errors Nov 19, 2025
@phaym phaym changed the title fix: stop polling on config fetch errors fix: stop polling when sdkKey is invalid Nov 19, 2025
@phaym phaym marked this pull request as ready for review November 19, 2025 16:19
@phaym phaym requested a review from a team as a code owner November 19, 2025 16:19
Copilot AI review requested due to automatic review settings November 19, 2025 16:19
Copilot finished reviewing on behalf of phaym November 19, 2025 16:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request fixes error handling in the config manager for local bucketing to properly stop polling when an invalid SDK key is provided (401/403 errors). The fix updates exception handling to catch the correct exception types that are actually thrown by the ConfigAPIClient.

  • Replaces CloudClientError/CloudClientUnauthorizedError with their parent classes APIClientError/APIClientUnauthorizedError
  • Updates the unauthorized error message to be more descriptive
  • Ensures polling stops when authentication fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@phaym phaym merged commit fdd1215 into main Nov 19, 2025
25 checks passed
@phaym phaym deleted the fix/local-config-error-handling branch November 19, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants