Skip to content

Conversation

ofek
Copy link
Contributor

@ofek ofek commented Oct 6, 2025

When checking for new releases there's no point in displaying rate limiting errors if GitHub auth has not been configured.

@ofek ofek marked this pull request as ready for review October 6, 2025 06:13
@ofek ofek requested a review from a team as a code owner October 6, 2025 06:13
response = client.get("https://api.github.com/repos/DataDog/datadog-agent-dev/releases/latest")
except httpx.HTTPStatusError as e:
github_auth = self.__app.config.github.auth
# Ignore rate limiting errors if the user has not authenticated
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not ignore rate limiting errors all the time ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed!

@ofek ofek changed the title Ignore unauthenticated rate limiting errors in logs Ignore rate limiting errors in logs when checking for new releases Oct 6, 2025
@ofek ofek merged commit 8d40ad2 into main Oct 6, 2025
20 checks passed
@ofek ofek deleted the ofek/github branch October 6, 2025 17:01
github-actions bot pushed a commit that referenced this pull request Oct 6, 2025
)

* Ignore unauthenticated rate limiting errors in logs

* address review 8d40ad2
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