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

Failed Precondition error is missing from MomentoErrorCode docs. #34

Open
schwern opened this issue Nov 18, 2022 · 0 comments
Open

Failed Precondition error is missing from MomentoErrorCode docs. #34

schwern opened this issue Nov 18, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@schwern
Copy link
Contributor

schwern commented Nov 18, 2022

PHP and DotNet both have a FailedPreconditionError in their MomentoErrorCode, but it isn't in our docs.

The error message is quite vague: 'System is not in a state required for the operation's execution'

The GRPC error is...

The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty or an rmdir operation is applied to a non-directory.

@malandis says there's a way it's used...

The increment operation assumes the value on the server is the string representation of an integer. If the user calls increment on a key where that is not true, we return a failed precondition

How can we help the user understand how to fix it?

@schwern schwern added documentation Improvements or additions to documentation question Further information is requested labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant