ErrorFetchingPinningInfo

Thrown when fetching pinning information from the remote Configuration source fails.

This error occurs when TrustPin cannot download the pinning configuration from the TrustPin CDN or when the downloaded configuration cannot be parsed.

Common Causes

  • Network connectivity issues

  • DNS resolution failures for cdn.trustpin.cloud

  • Firewall or proxy blocking HTTPS requests

  • Service downtime or maintenance

  • Invalid response format from the server

Resolution Steps

  1. Check connectivity: Verify internet connection and DNS resolution

  2. Test endpoint: Try accessing https://cdn.trustpin.cloud directly

  3. Review firewall: Ensure HTTPS traffic to TrustPin CDN is allowed

  4. Retry with backoff: Implement exponential backoff for transient failures

  5. Check service status: Verify TrustPin service availability

Retry Strategy

suspend fun setupWithRetry() {
repeat(3) { attempt ->
try {
trustPin.setup(/* credentials */)
return // Success
} catch (e: TrustPinError.ErrorFetchingPinningInfo) {
if (attempt < 2) {
delay((attempt + 1) * 1000L) // Exponential backoff
} else {
throw e
}
}
}
}

See also

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard