Skip to content

Conversation

@swarna1101
Copy link
Contributor

@swarna1101 swarna1101 commented Nov 28, 2025

  • Add AppLevelError struct to represent application-level errors with code and message
  • Add RpcError::AppLevelError variant to distinguish from transport-level errors
  • Implement extraction of application-level errors from tonic::Status
    • Error code (u8) is encoded in Status details as a single byte
    • Error message is in Status message string
  • Update from_grpc_error to check for application-level errors before falling back to generic gRPC errors
  • Add helper function from_app_level_error for creating application-level errors

@igamigo can you pls check this

@juan518munoz
Copy link
Collaborator

Looks good!

Please update the changelog and then tag me for re-review.

@swarna1101
Copy link
Contributor Author

Looks good!

Please update the changelog and then tag me for re-review.

@juan518munoz can you pls review again , thanks

@swarna1101 swarna1101 force-pushed the feature/grpc-app-level-errors branch from 35ecf15 to 0ba5415 Compare December 6, 2025 07:32
CHANGELOG.md Outdated

## 0.12.4 (TBD)

* Fixed a bug where insertions in the `Addresses` table in the IndexedDB Store resulted in the `id` and `address` fields being inverted with each other ([#1532](https://github.com/0xMiden/miden-client/pull/1532)).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this go under 0.13.0?

Copy link
Contributor Author

@swarna1101 swarna1101 Dec 11, 2025

Choose a reason for hiding this comment

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

done, pls do review @juan518munoz

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.

3 participants