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

chore: clarify limit exceeded in resource exhausted errors #1448

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

anitarua
Copy link
Contributor

@anitarua anitarua commented Oct 22, 2024

Work towards https://github.com/momentohq/dev-eco-issue-tracker/issues/982

Removes the confusing preamble from the RESOURCE_EXHAUSTED error message. Makes more clear which limit was exceeded if that information is available in the grpc error details or err metadata field.

Using the err metadata is preferred so that we don't rely on basic string matching if possible as error details can change any time in the future.

If all else fails, we return a generic error message: 'Limit exceeded for this account'

@anitarua anitarua marked this pull request as ready for review October 25, 2024 20:55
@anitarua anitarua requested a review from a team October 25, 2024 20:59
Copy link
Contributor

@rishtigupta rishtigupta left a comment

Choose a reason for hiding this comment

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

lgtm :shipit:

@anitarua anitarua merged commit 448eb96 into main Oct 28, 2024
13 checks passed
@anitarua anitarua deleted the resource-exhausted branch October 28, 2024 19:25
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