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}"}
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:
https://github.com/hyperledger/aries-vcx/blob/main/aries/aries_vcx_ledger/src/ledger/indy_vdr_ledger.rs#L600