indy-vdr icon indicating copy to clipboard operation
indy-vdr copied to clipboard

React native register schema crash

Open syuanlj opened this issue 11 months ago • 4 comments

I met the same problem with https://github.com/openwallet-foundation/credo-ts/issues/1626 There is dependencies in my package.json { "@credo-ts/askar": "0.5.10", "@credo-ts/core": "0.5.10", "@credo-ts/drpc": "0.5.10", "@credo-ts/indy-vdr": "0.5.10", "@credo-ts/push-notifications": "0.7.1", "@credo-ts/question-answer": "0.5.10", "@credo-ts/react-hooks": "0.6.0", "@credo-ts/react-native": "0.5.10", "@hyperledger/anoncreds-react-native": "0.2.4", "@hyperledger/aries-askar-react-native": "0.2.3", "@hyperledger/indy-vdr-react-native": "0.2.2", }

Error: Validation error: Trying to use DID with unexpected length: 0. The 16- or 32-byte number upon which a DID is based should be 22/23 or 44/45 bytes when encoded as base58.

Has this problem been solved? Thank U

syuanlj avatar Jan 23 '25 09:01 syuanlj

Please open this issue at credo, it seems the did being passed is just an empty string, not the issue of this library.

If you do think it is an issue of this library, please reopen this issue with a way to reproduce this error without credo-ts.

berendsliedrecht avatar Jan 24 '25 10:01 berendsliedrecht

Lol, i redirected to open the issue here. It's only in react native so has to be something in the wrapper.

TimoGlastra avatar Jan 24 '25 11:01 TimoGlastra

Okay, then I need some more information about which method causes this issue.

berendsliedrecht avatar Jan 27 '25 12:01 berendsliedrecht

I think it's the create / register schema method

TimoGlastra avatar Jan 29 '25 03:01 TimoGlastra