openwallet-foundation/credo-ts

Error Handling "OpenBadgeCredential" and "UniversityDegreeCredential"

Closed this issue · 0 comments

I encountered an error when running the demo in the demo-openid folder. Specifically, the error occurs when I select the OpenBadgeCredential or UniversityDegreeCredential in the Issuer terminal and then select Accept the credential offer in the holder terminal. The error message indicates that the process failed due to an invalid request, specifically, it mentions "Cannot read properties of undefined (reading 'length')".

Error Details:

/credo-ts/packages/openid4vc/src/openid4vc-holder/OpenId4VciHolderService.ts:627 throw new CredoError( CredoError: Did not receive a successful credential response. invalid_request: Cannot read properties of undefined (reading 'length') at OpenId4VciHolderService.handleCredentialResponse (/credo-ts/packages/openid4vc/src/openid4vc-holder/OpenId4VciHolderService.ts:627:13) at OpenId4VciHolderService.acceptCredentialOffer (/credo-ts/packages/openid4vc/src/openid4vc-holder/OpenId4VciHolderService.ts:424:37)

Steps to Reproduce:
I followed the steps from this guide.