
Vidos Ping Connector Troubleshooting
Having trouble with your Vidos Ping Connector integration? Don’t worry, we’ve got you covered.
Troubleshooting
Testing a credential Test the services independently using the testers in the Vidos Dashboard to confirm they are operational.
Error
Request timed out. Please try again.
Error
resolverInstance API error
Validation
A DID (Decentralized Identifier) method follows the format:
did:<method>:<method-specific-id>
To match a valid DID with any method name, use the following regex:
^did:[a-z0-9]+:[a-zA-Z0-9._\\\\-:]+$
Explanation
^asserts the start of the string.did:ensures the string starts with "did:".[a-z0-9]+matches the method name (one or more lowercase letters or digits).:is the required separator.[a-zA-Z0-9._\\\\-:]+matches the method-specific identifier (alphanumeric characters, dots, underscores, hyphens, and colons).$asserts the end of the string.
Examples of valid DIDs:
did:example:123456789abcdefghidid:key:z6MkfRLMVx7N6HQoGAw9Cdid:web:example.com:users:alice
This regex allows flexibility in the method-specific ID, supporting common characters used in DID schemes. #vidos-articles
Error
{
"checks": [
"format",
"proof"
],
"warnings": [],
"errors": [
"Failed to canonicalize"
]
}
Credential
{
"verifiablePresentation": {
"id": "id:test",
"proof": {
"proofValue": "zkhFb45dDtvpxfu21fyAMxi4tqRnNKDSouckj24JG9AAKKa2wpoq9RUvACP6kmJmZUrjrP4GVvRLyFJQNhRDCgfS",
"created": "2023-03-01T21:29:24Z",
"proofPurpose": "assertionMethod",
"type": "DataIntegrityProof",
"verificationMethod": "did:key:zDnaekGZTbQBerwcehBSXLqAg6s55hVEBms1zFy89VHXtJSa9#zDnaekGZTbQBerwcehBSXLqAg6s55hVEBms1zFy89VHXtJSa9",
"cryptosuite": "ecdsa-rdfc-2019"
},
"type": [
"VerifiablePresentation"
],
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/secusrity/data-integrity/v2"
],
"verifiableCredential": [
{
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"alumniOf": "Example University",
"id": "https://example.edu/students/alice"
},
"id": "http://example.edu/credentials/1872",
"proof": {
"proofValue": "zNqtAbEWenMxFDB8omdCSzY5S1GGNAQjWibDycCnJMkHeLF5apDje6QxSgqsjn5AMqDRkX7dsh9BnVpbAnnkzTX1",
"created": "2023-03-01T21:29:24Z",
"proofPurpose": "assertionMethod",
"type": "DataIntegrityProof",
"verificationMethod": "did:key:zDnaekGZTbQBerwcehBSXLqAg6s55hVEBms1zFy89VHXtJSa9#zDnaekGZTbQBerwcehBSXLqAg6s55hVEBms1zFy89VHXtJSa9",
"cryptosuite": "ecdsa-rdfc-2019"
},
"type": [
"VerifiableCredential",
"AlumniCredential"
],
"@context": [
"https://www.w3.org/2018/credentials/v1",
{
"alumniOf": "https://schema.org#alumniOf",
"AlumniCredential": "https://schema.org#AlumniCredential"
},
"https://w3id.org/security/data-integrity/v2"
],
"issuer": "did:key:zDnaekGZTbQBerwcehBSXLqAg6s55hVEBms1zFy89VHXtJSa9"
}
]
}
}
Resolver Errors
Common Error Cases:
- Invalid did:key format
- Unsupported key type
- Network connectivity issues
Best Practices:
- Validate did:key format before resolution
- Add error handling for all failure cases
- Log resolution failures for monitoring
Vidos Connector Troubleshooting Guide
Quick Start
Before diving into specific errors, try these first steps:
- Test services independently using the testers in the Vidos Dashboard
- Verify your API keys have the correct permissions
- Check your network connectivity to Vidos services
- Validate your input format matches the examples in the documentation
Common Errors and Solutions
Request Timeouts
Error: Request timed out. Please try again.
Possible Causes:
- Network connectivity issues
- Service temporary unavailability
Solutions:
- Check your network connection
- Verify the service status in Vidos Dashboard
- Consider implementing retry logic with exponential backoff
Resolver Instance API Errors
Possible Causes:
- Invalid API key
- Incorrect endpoint URL
- Missing permissions
- Rate limit exceeded
Solutions:
- Verify API key in Vidos Dashboard
- Check endpoint URL format
- Review API key permissions
- Monitor your API usage
DID Validation Errors
DIDs must follow the format: did:<method>:<method-specific-id>
Valid DID Format (Regex):
^did:[a-z0-9]+:[a-zA-Z0-9._\\\\-:]+$
Example Valid DIDs:
did:example:123456789abcdefghidid:key:z6MkfRLMVx7N6HQoGAw9Cdid:web:example.com:users:alice
Common DID Validation Issues:
- Missing 'did:' prefix
- Invalid method name
- Invalid characters in method-specific ID
- Uppercase letters in method name
Canonicalization Errors
{
"checks": ["format", "proof"],
"warnings": [],
"errors": ["Failed to canonicalize"]
}
Possible Causes:
- Malformed JSON-LD context
- Invalid or missing @context values
- Incorrect ordering of credential properties
- Typos in context URLs (e.g., "secusrity" instead of "security")
Solutions:
- Verify all @context URLs are correct and accessible
- Ensure credential properties follow the W3C VC data model
- Check for typos in context URLs (e.g., fix "secusrity" to "security")
- Validate JSON-LD structure before sending
Resolver-Specific Errors
did:key Resolution Issues
Common Error Cases:
- Invalid did:key format
- Unsupported key type
- Network connectivity issues
Best Practices:
- Validate did:key format before resolution
- Add error handling for all failure cases
- Log resolution failures for monitoring
Performance Optimization
Response Time Improvements
- Implement caching where appropriate
- Use batch operations when possible
- Monitor and optimize payload sizes
Resource Usage
- Implement proper connection pooling
- Close connections properly
- Handle cleanup of resources in error cases
Monitoring and Debugging
Logging Best Practices
- Log all API requests and responses
- Include correlation IDs
- Track timing metrics
- Log at appropriate levels (ERROR, WARN, INFO)
Metrics to Monitor
- API response times
- Error rates
- Success/failure ratios
- Rate limit usage
Testing Recommendations
Integration Testing
- Test with sample credentials before production use
- Validate error handling paths
- Test with various credential types
- Verify timeout handling
Load Testing
- Test with expected production volumes
- Verify rate limit handling
- Test error scenarios under load
- Monitor resource usage
Support Resources
- Vidos Dashboard: https://dashboard.vidos.id
- API Documentation: https://docs.vidos.id
- Support Email: support@vidos.id
Error Reference
HTTP Status Codes
- 400: Bad Request (invalid input)
- 401: Unauthorized (invalid API key)
- 403: Forbidden (insufficient permissions)
- 429: Too Many Requests (rate limit exceeded)
- 500: Internal Server Error (service issue)
Common Error Messages
| Error Message | Likely Cause | Solution |
|---|---|---|
| "Failed to canonicalize" | Invalid JSON-LD structure | Check context URLs and document structure |
| "Invalid DID format" | Malformed DID | Validate against regex pattern |
| "Request timed out" | Network/service issue | Implement retry logic |
| "Invalid API key" | Authentication issue | Verify API key in dashboard |