Skip to content

add client response errors to our catching stack #972

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

Merged
merged 3 commits into from
Jun 13, 2025

Conversation

mskarlin
Copy link
Collaborator

s2 has started often returning 403s which are not currently caught otherwise.

@Copilot Copilot AI review requested due to automatic review settings June 13, 2025 18:38
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jun 13, 2025
Copy link
Contributor

@Copilot 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 PR adds exception handling to catch client response errors from the metadata service, ensuring that 403 responses from s2 are logged for better monitoring.

  • Added a new exception block to catch aiohttp.ClientResponseError
  • Logs warning messages with client query details on error

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 13, 2025
@mskarlin mskarlin enabled auto-merge (squash) June 13, 2025 18:41
@mskarlin mskarlin disabled auto-merge June 13, 2025 19:53
@mskarlin mskarlin merged commit 4b13b10 into main Jun 13, 2025
3 of 5 checks passed
@mskarlin mskarlin deleted the client-response-error-catching branch June 13, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants