ERR_ORIGINATOR_PROFILE_INVALID
Error Code: ERR_ORIGINATOR_PROFILE_INVALID
This error occurs when the Originator Profile is in an invalid format.
Error Message
- "Core Profile decode failed"
- "Profile Annotation decode failed"
- "Web Media Profile decode failed"
- "Subject mismatch between Core Profile and Web Media Profile"
- "Subject mismatch between Core Profile and Profile Annotation"
Causes
- Decoding of the Core Profile may have failed.
- Decoding of the Profile Annotation may have failed.
- Decoding of the Web Media Profile may have failed.
- The Core Profile's
credentialSubject.idmay not match the Profile Annotation'scredentialSubject.id. - The Core Profile's
credentialSubject.idmay not match the Web Media Profile'scredentialSubject.id.
Examples
- The Core Profile is placed with part of its header missing.
<script type="application/ops+json">
[
{
"core": "yJhbGciOiJFUzI1NiIsImtpZCI6ImpKWXM1X0lMZ1VjODE4MEwtcEJQeEJwZ0EzUUM3ZVp1OXdLT2toOW1ZUFUiLCJ0eXAiOiJ2Yytqd3QiLCJjdHkiOiJ2YyJ..."
}
]
</script>
- A Core Profile is issued with a
credentialSubject.idvalue that does not match the Profile Annotation’scredentialSubject.id.For example, when the Core Profile'scredentialSubject.idisdns:profile-annotator.example.org, the Profile Annotation's was issued withcredentialSubject.idisdns:another.org.
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://originator-profile.org/ns/credentials/v1",
{
"@language": "en"
}
],
"type": ["VerifiableCredential", "ProfileAnnotation"],
"issuer": "dns:profile-annotator.example.org",
"credentialSubject": {
"id": "dns:another.org",
"name": "<PA Name>",
"description": "<Description of PA>",
"annotation": {
"id": "urn:uuid:14270f8f-9f1c-4f89-9fa4-8c93767a8404",
"type": "ProfileAnnotationPolicy",
"name": "<Profile Annotation Policy Name>",
"description": "<Description of Profile Annotation Policy>",
"ref": "https://annotation.example.org/about"
}
}
}
Resolution
- Review that the Core Profile, Profile Annotation, and Web Media Profile and correct any invalid formatting.
Additional details can be found in
ERR_VC_DECODE_FAILED. - Confirm that the
credentialSubject.idvalues in the Core Profile and Profile Annotation match. Additional details can be found in Core Profile and Profile Annotation. - Confirm that the
credentialSubject.idvalues in the Core Profile and Web Media Profile match. Additional details can be found in Core Profile and Web Media Profile.