Skip to content
Customer Identity · available nowBuild your first Test integration.Create a Test project
NamoID
All posts
NamoID Blog

Troubleshoot DigiLocker Consent and Document Errors

Trace DigiLocker errors through callback, token exchange, permissions, and retrieval. Use safe diagnostics to distinguish configuration errors from user choices.

Find the first failed stage in a DigiLocker request. Start with authorization and continue through token exchange, permission checks, document lookup, and integrity verification. The same message on the final screen can hide different causes.

Use your contract's error definitions and an internal request reference. The v2.4 specification documents errors separately by endpoint. Keep the stage alongside the status. Requester v2.4 specification

Route the failure by stage

Observed stageFirst checkPossible next step
Authorization rejects the requestRegistered client, exact callback, and required fieldsCorrect the reviewed configuration
User denies consentValid callback and denial responseOffer the approved alternative
Token exchange rejects a codeCallback binding, verifier, code age, and environmentStart a fresh attempt after diagnosis
Document endpoint returns 403Returned permissions and approved document accessReview the contract and grant
List succeeds without the requested recordIssued record availability and permitted filtersOffer an approved manual review
Integrity check failsResponse bytes, MAC, and configured secretStop processing and investigate
Provider is unavailableDependency health and retry policyShow a recoverable failure

Treat these as diagnostic starting points. Verify the applicable endpoint and error details before assigning a cause.

A person who declines has made a choice. An empty permitted list can also occur after a successful consent flow. A configuration failure may prevent the list request from succeeding at all.

For a synthetic support case, the user sees “We could not finish the check.” The internal event says the issued list request returned 403. The operator reviews the contract and granted permissions before advising the user to look for a missing licence.

Use language that fits the verified outcome. A missing record message should follow a valid lookup or an equivalent documented outcome.

Prepare a support handoff

  1. Record the internal verification reference.
  2. Record the environment and application name.
  3. Record the first failing stage.
  4. Record the bounded error code and approximate time.
  5. Describe the expected and observed behaviour.
  6. Send the summary through the approved support channel.

Exclude tokens, authorization codes, document contents, and full document URIs. Use a synthetic example when a screenshot would reveal a person's information.

Decide when a retry is safe

A fresh authorization may be necessary after a code is consumed or consent expires. A provider outage may allow a later retry under your documented policy. Keep retries of token cleanup separate from new verification attempts.

Inspect the state before retrying an action with side effects. Preserve the original reference so support can see the sequence. Consent and expiry boundaries.

Diagnose an integration with NamoID

NamoID engineers can help interpret a redacted failure stage and check your callback, scope, or approval assumptions. Share the environment, stack, and bounded error in Slack. Message the NamoID team in Slack