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. New err and details values 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 details and stage as optional extra context — either may be missing
  • Log the full decoded error_description and cid for anything unrecognised

Error codes

errMeaningCategoryApplies to
user_cancelledThe user chose to stopUser choiceAll
no_consentThe user declined to share their detailsUser choiceVerified credentials
session_timeoutThe user took too longTimeoutAll
document_rejectedThe document scan failedNot verifiedDocument verification, and creating a verified credential
document_suspectedThe document scan raised concernsNot verifiedDocument verification, and creating a verified credential
idv_data_matching_failedSources didn't match, or data was missingNot verifiedDual mode, subject matching, and creating a verified credential
no_match_foundNo credential matched the requestNot verifiedVerified credentials
issuance_incompleteA credential couldn't be createdSystemVerified credentials
wallet_errorAn error in the verification appSystemVerified credentials
system_errorInternal errorSystemAll

Details values

Every details value Hub can send, by err:

errPossible detailsMore
user_cancelledcancelled_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_pageUser cancellation
no_consentno_consentUser cancellation
session_timeoutvcs_session_expiredTimeouts
document_rejected, document_suspectedNoneDocument verification
idv_data_matching_failedmismatch, no_vme_claims, no_document_claims, no_request_subject_claims, document_with_result_not_clearMatching
no_match_foundNone
system_errorivs_error, document_idv_error, matching_error, oidc_failure, internal_hub_errorSystem errors
issuance_incompleteincomplete_userinfoSystem errors
wallet_erroruser_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_credentialApp 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

stageWhere it happened
sharing_initStarting the flow
sharing_interactionIn the app, while the user shares
sharing_completionFinishing up after consent
issuanceWhile 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

When Hub can't be more specific, it sends the code on its own, sometimes with a stage:

error_descriptionMeaning
err:user_cancelledThe user cancelled
err:system_errorInternal error
err:session_timeoutThe session expired
err:system_error$stage:sharing_interactionInternal error, in the app
err:session_timeout$stage:sharing_initThe 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:

  1. Bank system error
  2. Document system error
  3. Bank step cancelled
  4. Document step cancelled
  5. Cancelled on a verification instructions page
  6. Document rejected, then document suspected
  7. 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_descriptionWhere they stopped
err:user_cancelled$details:cancelled_on_landing_page$stage:sharing_initThe Hub landing page
err:user_cancelled$details:cancelled_on_idv_guidance_page$stage:issuanceThe verification instructions
err:user_cancelled$details:ivs_cancelled$stage:issuanceDuring bank sign-in
err:user_cancelled$details:document_idv_cancelled$stage:issuanceDuring document scanning
err:user_cancelled$details:on_accept_document_screen$stage:sharing_interactionAccepting the document
err:user_cancelled$details:on_start_issuance_screen$stage:sharing_interactionStarting issuance
err:user_cancelled$details:on_partner_authorize_screen$stage:sharing_interactionAuthorising the share
err:user_cancelled$details:on_issuer_guidance_page$stage:issuanceIssuer instructions
err:no_consent$stage:sharing_interactionDeclined to share
err:no_consent$details:no_consent$stage:sharing_interactionDeclined to share. Same meaning as the row above — both forms are sent.

Timeouts

error_descriptionMeaning
err:session_timeoutThe 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_interactionThe app session expired

Session length is set per client by the Session length option (sessionTimeoutOverride): 5–60 minutes, default 30.

Document verification

error_descriptionMeaning
err:document_rejected$stage:issuanceRejected. Includes rejected_flags.
err:document_suspected$stage:issuanceSuspected. Includes suspected_flags.

Flag meanings are in Fraud flags.

Matching

error_descriptionMeaning
err:idv_data_matching_failed$details:mismatchThe comparison ran and scored too low. Includes match_score.
err:idv_data_matching_failed$details:no_vme_claimsThe bank returned no profile data to compare
err:idv_data_matching_failed$details:no_document_claimsThe document returned no data to compare
err:idv_data_matching_failed$details:no_request_subject_claimsYour subject had nothing to compare
err:idv_data_matching_failed$details:document_with_result_not_clearThe 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_descriptionWhere it failed
err:system_error$details:ivs_error$stage:issuanceBank verification
err:system_error$details:document_idv_error$stage:issuanceDocument verification
err:system_error$details:matching_error$stage:issuanceComparison
err:system_error$details:oidc_failure$stage:issuanceCredential issuance
err:system_error$details:internal_hub_errorUnspecified
err:issuance_incomplete$details:incomplete_userinfo$stage:issuanceCredential 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.