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

Switch to HTTP based error codes #281

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

igalshilman
Copy link
Contributor

This PR replaces the gRPC based ErrorCode enum, with the HTTP based (integer) status code.

Copy link
Contributor

@slinkydeveloper slinkydeveloper left a comment

Choose a reason for hiding this comment

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

Looks great!

@slinkydeveloper slinkydeveloper linked an issue Mar 20, 2024 that may be closed by this pull request
Comment on lines 23 to 25
export enum RestateErrorCodes {
JOURNAL_MISMATCH = 32,
PROTOCOL_VIOLATION = 33,
Copy link
Contributor

Choose a reason for hiding this comment

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

You also need to get rid of those and replace them with 570/571, as described here restatedev/service-protocol@61ae44b

This commit replaces the gRPC based ErrorCode enum,
with the HTTP based (integer) status code.
@igalshilman
Copy link
Contributor Author

Since e2e tests are currently influx, I'll go ahead an merge that.

@igalshilman igalshilman merged commit 229451e into restatedev:main Mar 20, 2024
1 of 2 checks passed
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.

Error code new data model
2 participants