Document Registry Troubleshooting Guide
This section covers common errors and issues specific to the Document Registry functionality.
Common Document Registry Errors
Invalid Reference Link
Description: The provided document reference link is inaccessible or invalid.
Error Message: Entered IPFS/arweave/web link reference is not available
Reasons:
- The reference link does not exist
- The link is not reachable (connection issues)
- Web links: Storage provider does not support CORS
- IPFS links: The CID does not exist for IPFS-deployed documents
- Arweave links: The TX-ID does not exist or the document is not minted yet
Solution:
- Verify link accessibility: Test the link in a browser or network tool
- IPFS documents: Confirm the CID exists and is pinned to the network
- Arweave documents: Verify the TX-ID exists and the document is fully minted
- Web links: Ensure the storage provider supports CORS
- Check network access: Confirm your connection can reach the storage network
- Re-upload if necessary: Upload the document to a reliable storage provider
Prevention:
- Test all storage links before registration
- Use decentralized storage with high availability (IPFS/Arweave)
- For web links, verify CORS support with the provider
- Confirm deployment completion before registration
Document Loading Failed
Description: Unable to load or verify a registered document.
Error Message: Document loading failed: no registered document or wrong document did
Causes:
- Resource errors: Link decryption, proof claims, or data resolution failures
- Broken user data: Users editing or removing information from their registered document DID
- Changed files: Users modifying the original file after registration (common with web links)
- Missing key information: Critical data removed from the document DID
Solution:
- Verify DID completeness: Check that the document DID contains all required fields
- Check file integrity: Ensure the original file hasn't been modified
- Re-register if needed: If the file was changed, register a new document
- Contact issuer: For third-party documents, request a re-issue
- For web links: Verify the linked file matches the originally registered version
Prevention:
- Never modify files after registration
- Store immutable copies on IPFS or Arweave
- Keep backup of original document DIDs
- Use version control for document updates
Document Status Change Permissions
Description: Unauthorized attempt to change document status.
Error Messages: Only issuer can revoke/validate/suspend document
Reason: Only the original issuer of a document has permission to change its status (revoke, validate, or suspend). These are three separate but related permission errors.
Solution:
- Identify the issuer: Determine who originally issued the document
- Contact issuer: Request the status change from the authorized party
- Provide justification: Explain why the status change is needed
- Wait for action: Allow the issuer to perform the status change
- For self-issued documents: Ensure you're using the correct issuer account/wallet
Prevention:
- Document issuer relationships clearly
- Establish status change protocols with issuers
- Maintain contact information for document issuers
- Consider multi-signature setups for important documents
Unsupported Reference DID Method
Description: Document reference deciphering process fails.
Error Message: unsupported reference DID method
Reason: The cipher key in the document DID has been altered by users, breaking the deciphering process and preventing correct plain data resolution.
Solution:
- Do not modify DIDs: Document DIDs should never be manually edited
- Use original DID: Retrieve the original, unmodified document DID
- Re-register: If the DID was altered, register a new document
- Check generation tools: Ensure DID generation tools are functioning correctly
- Contact support: If the error appears without user modification
Prevention:
- Never manually edit or alter document DIDs
- Use official DID generation tools
- Store DIDs in secure, unmodifiable formats
- Implement checksums for DID validation
Invalid DID Delegate
Description: Actor lacks proper delegation permissions.
Error Message: Invalid DID delegate
Reasons:
- Actor key is not an active delegate of the entered Ethereum DID (ERC1056)
- Actor is an active delegate but not an
assertionMethoddelegate for that DID
Solution:
- Verify delegation status: Check if your key is properly delegated
- Check delegate type: Ensure you're an
assertionMethoddelegate - Request proper delegation: Contact the DID controller for correct delegation
- Use correct key: Switch to a properly delegated key if available
- Update delegation: If permissions changed, request updated delegation
Prevention:
- Maintain proper delegation records
- Regularly verify delegate status
- Document delegation hierarchies
- Use delegation management tools
Unmatched Reference Hash
Description: Document file verification fails due to content changes.
Error Message: Unmatched reference hash
Reason: The user has changed the original file after registration, causing hash verification to fail. This is particularly common with web link resources where users can modify the linked file.
Solution:
- Restore original file: Revert to the exact file used during registration
- Check file integrity: Compare current file hash with registered hash
- For web links: Ensure the linked file hasn't been updated or replaced
- Re-register: If the file must be changed, register a new document
- Use immutable storage: Switch to IPFS or Arweave to prevent modifications
Prevention:
- Use immutable storage (IPFS/Arweave) for important documents
- Implement version control instead of file replacement
- Document file hashes at registration time
- Use checksums for file integrity verification
Document Lifecycle Statuses
Created → Registered → [Validated/Suspended/Revoked] → Archived
Valid Status Changes:
- Issuer only: Revoke, Validate, Suspend
- Owner/Delegate: Update metadata (with proper permissions)
- Anyone: Verify (read-only)
Quick Resolution Guide
| Error | Likely Cause | Immediate Action | Long-term Prevention |
|---|---|---|---|
| Invalid Reference Link | Broken link, CORS issue | Test link, check storage | Use decentralized storage |
| Document Loading Failed | Modified file/DID | Verify original files | Immutable storage |
| Status Change Denied | Wrong actor | Contact issuer | Document issuer roles |
| Unsupported DID Method | Modified DID | Use original DID | Never edit DIDs |
| Invalid DID Delegate | Missing permissions | Request delegation | Maintain delegation records |
| Unmatched Hash | File changed | Restore original | Hash verification systems |
Best Practices for Document Management
Storage Recommendations
- For critical documents: Use IPFS or Arweave (immutable)
- For frequently updated documents: Implement versioning systems
- Avoid: Modifiable web links for important documents
- Always: Store original file hashes and DIDs securely
DID Management
- Never manually edit DIDs
- Always use official generation tools
- Store DIDs in multiple secure locations
- Verify DIDs before sharing or using
Permission Management
- Document all issuer-delegate relationships
- Regularly audit delegation status
- Use proper DID methods for your use case
- Implement multi-signature for important documents
Support Information
When contacting support about document registry issues, provide:
- Complete document DID
- Original registration transaction hash
- Error message screenshot
- Storage link used
- Steps to reproduce the issue
- Any modifications made since registration