Detailed error reference
Structured error values, for clients with detailed error reporting.
These values are only returned to clients with detailed error reporting, an optional capability. Most clients don't have it. Their errors are all in the Error reference.
Does this page apply to you?Look at an error redirect from Hub. If it includes a
cid, your client has detailed error reporting and this page applies. If it doesn't, use the Error reference instead.Verified credentials clients always have detailed error reporting.
Values use the err:...$details:...$stage:... format. For how to read it, see How Hub reports errors. Request errors and token and userinfo errors are the same for every client.
This list is not complete, and can't be. In the verified credentials flow, the Interac verification app and credential service report their own errors, and Hub passes them to you unchanged. Newerranddetailsvalues can appear without a Hub release.Build your handler to cope with values that aren't listed here:
- Branch on
err, and have a default branch for codes you don't recognise- Treat
detailsandstageas optional extra context — either may be missing- Log the full decoded
error_descriptionandcidfor anything unrecognised
Error codes
err | Meaning | Category | Applies to |
|---|---|---|---|
user_cancelled | The user chose to stop | User choice | All |
no_consent | The user declined to share their details | User choice | Verified credentials |
session_timeout | The user took too long | Timeout | All |
document_rejected | The document scan failed | Not verified | Document verification, and creating a verified credential |
document_suspected | The document scan raised concerns | Not verified | Document verification, and creating a verified credential |
idv_data_matching_failed | Sources didn't match, or data was missing | Not verified | Dual mode, subject matching, and creating a verified credential |
no_match_found | No credential matched the request | Not verified | Verified credentials |
issuance_incomplete | A credential couldn't be created | System | Verified credentials |
wallet_error | An error in the verification app | System | Verified credentials |
system_error | Internal error | System | All |
Details values
Every details value Hub can send, by err:
err | Possible details | More |
|---|---|---|
user_cancelled | cancelled_on_landing_page, cancelled_on_idv_guidance_page, ivs_cancelled, document_idv_cancelled, on_accept_document_screen, on_start_issuance_screen, on_partner_authorize_screen, on_issuer_guidance_page | User cancellation |
no_consent | no_consent | User cancellation |
session_timeout | vcs_session_expired | Timeouts |
document_rejected, document_suspected | None | Document verification |
idv_data_matching_failed | mismatch, no_vme_claims, no_document_claims, no_request_subject_claims, document_with_result_not_clear | Matching |
no_match_found | None | |
system_error | ivs_error, document_idv_error, matching_error, oidc_failure, internal_hub_error | System errors |
issuance_incomplete | incomplete_userinfo | System errors |
wallet_error | user_not_found, no_session_id, no_correlation_id, network_error, wrong_processing_step, no_credential_type_config, missing_parameters, no_partner_config, no_display_data, no_recheck, failed_loading_legal_documents, failed_saving_credential | App errors |
Any err can also arrive with no details at all. In the verified credentials flow, the Interac verification app can also send values that aren't listed here. See the last sections of this page.
Stages
stage | Where it happened |
|---|---|
sharing_init | Starting the flow |
sharing_interaction | In the app, while the user shares |
sharing_completion | Finishing up after consent |
issuance | While verifying or creating a credential |
stage only appears in the verified credentials flow. Hub sets the first three values; issuance and any others come from the Interac verification app. Errors from bank verification, document verification, dual mode and subject matching have no stage. Branch on err, not stage.
Values with no details
detailsWhen Hub can't be more specific, it sends the code on its own, sometimes with a stage:
error_description | Meaning |
|---|---|
err:user_cancelled | The user cancelled |
err:system_error | Internal error |
err:session_timeout | The session expired |
err:system_error$stage:sharing_interaction | Internal error, in the app |
err:session_timeout$stage:sharing_init | The session expired at the start |
Any of the three codes can pair with any stage. Handle them by err alone.
Only one error is reported
Outside the verified credentials flow, if more than one thing fails you get the first match in this order:
- Bank system error
- Document system error
- Bank step cancelled
- Document step cancelled
- Cancelled on a verification instructions page
- Document rejected, then document suspected
- Matching failed
So in dual mode, a bank error hides a document rejection in the same flow.
User cancellation
All of these mean the user chose to stop. Offer to start again.
error_description | Where they stopped |
|---|---|
err:user_cancelled$details:cancelled_on_landing_page$stage:sharing_init | The Hub landing page |
err:user_cancelled$details:cancelled_on_idv_guidance_page$stage:issuance | The verification instructions |
err:user_cancelled$details:ivs_cancelled$stage:issuance | During bank sign-in |
err:user_cancelled$details:document_idv_cancelled$stage:issuance | During document scanning |
err:user_cancelled$details:on_accept_document_screen$stage:sharing_interaction | Accepting the document |
err:user_cancelled$details:on_start_issuance_screen$stage:sharing_interaction | Starting issuance |
err:user_cancelled$details:on_partner_authorize_screen$stage:sharing_interaction | Authorising the share |
err:user_cancelled$details:on_issuer_guidance_page$stage:issuance | Issuer instructions |
err:no_consent$stage:sharing_interaction | Declined to share |
err:no_consent$details:no_consent$stage:sharing_interaction | Declined to share. Same meaning as the row above — both forms are sent. |
Timeouts
error_description | Meaning |
|---|---|
err:session_timeout | The Hub session expired |
err:session_timeout$stage:<stage> | The Hub session expired, at the given stage |
err:session_timeout$details:vcs_session_expired$stage:sharing_interaction | The app session expired |
Session length is set per client by the Session length option (sessionTimeoutOverride): 5–60 minutes, default 30.
Document verification
error_description | Meaning |
|---|---|
err:document_rejected$stage:issuance | Rejected. Includes rejected_flags. |
err:document_suspected$stage:issuance | Suspected. Includes suspected_flags. |
Flag meanings are in Fraud flags.
Matching
error_description | Meaning |
|---|---|
err:idv_data_matching_failed$details:mismatch | The comparison ran and scored too low. Includes match_score. |
err:idv_data_matching_failed$details:no_vme_claims | The bank returned no profile data to compare |
err:idv_data_matching_failed$details:no_document_claims | The document returned no data to compare |
err:idv_data_matching_failed$details:no_request_subject_claims | Your subject had nothing to compare |
err:idv_data_matching_failed$details:document_with_result_not_clear | The document wasn't CLEAR, so it wasn't compared |
mismatch means the comparison ran and the person didn't match. Every other details value means it couldn't run at all — usually a data or system issue, not a mismatch. Handle them differently.
In the verified credentials flow these arrive with $stage:issuance appended.
System errors
Retry later and log the cid.
error_description | Where it failed |
|---|---|
err:system_error$details:ivs_error$stage:issuance | Bank verification |
err:system_error$details:document_idv_error$stage:issuance | Document verification |
err:system_error$details:matching_error$stage:issuance | Comparison |
err:system_error$details:oidc_failure$stage:issuance | Credential issuance |
err:system_error$details:internal_hub_error | Unspecified |
err:issuance_incomplete$details:incomplete_userinfo$stage:issuance | Credential data invalid |
Outside the verified credentials flow, a document system error arrives as plain err:system_error, with no details.
App errors
All are system issues. Retry later and log the cid.
user_not_found · no_session_id · no_correlation_id · network_error · wrong_processing_step · no_credential_type_config · missing_parameters · no_partner_config · no_display_data · no_recheck · failed_loading_legal_documents · failed_saving_credential
Format: err:wallet_error$details:<value>$stage:sharing_interaction. Two of these — failed_loading_legal_documents and failed_saving_credential — use $stage:issuance instead.
Errors from the app that Hub doesn't recognise
If the verification app reports an error in a format Hub doesn't recognise, Hub still passes it through:
err:<app error code>$details:<app description>$stage:<stage>
The details part in this case is free text and may contain spaces. Don't try to match it exactly — log it and handle the error by err.
Handling pattern
Branch on err, with a default branch:
err = parsed.get("err")
if err in ("user_cancelled", "no_consent", "session_timeout"):
offer_retry()
elif err in ("document_rejected", "document_suspected",
"idv_data_matching_failed", "no_match_found"):
apply_verification_policy(cid)
else:
# system_error, wallet_error, issuance_incomplete, and anything unlisted
log_and_retry_later(cid, error_description)const err = parsed.err;
if (["user_cancelled", "no_consent", "session_timeout"].includes(err)) {
offerRetry();
} else if (["document_rejected", "document_suspected",
"idv_data_matching_failed", "no_match_found"].includes(err)) {
applyVerificationPolicy(cid);
} else {
// system_error, wallet_error, issuance_incomplete, and anything unlisted
logAndRetryLater(cid, errorDescription);
}String err = parsed.getOrDefault("err", "");
switch (err) {
case "user_cancelled", "no_consent", "session_timeout" -> offerRetry();
case "document_rejected", "document_suspected",
"idv_data_matching_failed", "no_match_found" -> applyVerificationPolicy(cid);
// system_error, wallet_error, issuance_incomplete, and anything unlisted
default -> logAndRetryLater(cid, errorDescription);
}var err = parsed.GetValueOrDefault("err");
switch (err)
{
case "user_cancelled" or "no_consent" or "session_timeout":
OfferRetry();
break;
case "document_rejected" or "document_suspected"
or "idv_data_matching_failed" or "no_match_found":
ApplyVerificationPolicy(cid);
break;
default: // system_error, wallet_error, issuance_incomplete, and anything unlisted
LogAndRetryLater(cid, errorDescription);
break;
}Without detailed error reporting, use the Error reference instead.
Updated 3 days ago