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

[BUG] Incorrect error type when publishing schema with indyvdr #1219

Open
gmulhearn-anonyome opened this issue Jun 10, 2024 · 0 comments
Open

Comments

@gmulhearn-anonyome
Copy link
Contributor

I'm finding that the indyvdr implementation of anoncreds ledger is returning "duplicate schema" errors for any invalid ledger response. The error mapping should be more controlled than this.

For instance, i was getting duplicate schema errors, but the real error was:

{0:"{"reason":"client request invalid: UnauthorizedClientRequest('Rule for this action is: 1 TRUSTEE signature is required OR 1 STEWARD signature is required OR 1 ENDORSER signature is required\nFailed checks:\nConstraint: 1 TRUSTEE signature is required, Error: Not enough TRUSTEE signatures\nConstraint: 1 STEWARD signature is required, Error: Not enough STEWARD signatures\nConstraint: 1 ENDORSER signature is required, Error: Not enough ENDORSER signatures',)","op":"REJECT","identifier":"Tm8G8wnWbCwYBEbxTTn2N2","reqId":1717979749424644000}"}

https://github.com/hyperledger/aries-vcx/blob/main/aries/aries_vcx_ledger/src/ledger/indy_vdr_ledger.rs#L600

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

No branches or pull requests

1 participant