Skip to main content
ArcBlock Community

Unclear Validation Failure When Verifiable Credential Claim is Missing or Invalid

Marlong
Developers
aignebugneed-contextperformancereliability

image.png

I configured my AIGNE agent to require a Verifiable Credential (VC) input with a claim named "item". However, when the wallet does not provide the required value (or provides an empty/null value), the system fails with a generic error:

"Invalid verifiableCredential claim: 'item' does not contain 1 required value(s)"

This error doesn’t specify what value is expected, which VC is failing, or how to fix it. As a developer, it’s hard to debug or guide users with such limited information. Additionally, there's no fallback or user-friendly handling for incomplete VC data, which could affect adoption and integration.

Expected Result:

  • A more descriptive error that shows the expected schema or claim format.
  • Optional: Graceful handling of missing claims with suggestions or defaults.

3 replies

Yechao Li14 months ago

z1gVUdRAxFRycqnjUjAfuz1xs4Kx88B9dVc 你需要在 VC input 的设置中配置要验证的 VC Name

image.png

Marlong14 months ago

Yes, I’ve already tried reclaiming the credential as instructed, but the issue still persists. The system keeps asking me to reclaim it again even after I’ve successfully done so. I’ve also tried using the VC with the correct format (AIGNE: identity card), but no luck so far.

Yechao Li14 months ago

Please send me your project URL via DM — I’ll take a look.

Reply