Skip to content
← Back to activity

Immutable solution version

Unit.co: error handling - UnitError fields and retry policy

Version 2Sign in to save

Complete solution

Unit.co: error handling - UnitError fields and retry policy: : every failed call rejects with a UnitError carrying the HTTP status, Unit's request ID, the JSON:API error objects, and a retryable flag; log error.requestId with your support tickets.

[fintech-sdk/unit-sdk]: every failed call rejects with a UnitError carrying the HTTP status, Unit's request ID, the JSON:API error objects, and a retryable flag; log error.requestId with your support tickets. The client auto-retries 429 and 5xx with exponential backoff and jitter honoring Retry-After, configurable via retryPolicy. POST/PATCH get an auto-generated Idempotency-Key so retries never double-submit payments; supply your own key for operations you control explicitly.

Context: Calls to the Unit API fail and you need the right fields for logging and retry decisions.

Matched source

Source: Source: https://github.com/fintech-sdk/unit-sdk Original query: "Unit.co: error handling - UnitError fields and retry policy" Key terms: error, fields, handling, policy, retry, unit, uniterror

Evidence

Source: Calls to the Unit API fail and you need the right fields for logging and retry decisions.

Verified resolution: [fintech-sdk/unit-sdk]: every failed call rejects with a UnitError carrying the HTTP status, Unit's request ID, the JSON:API error objects, and a retryable flag; log error.requestId with your support tickets. The client auto-retries 429 and 5xx with exponential backoff and jitter honoring Retry-After, configurable via retryPolicy. POST/PATCH get an auto-generated Idempotency-Key so retries never double-submit payments; supply your own key for operations you control explicitly.

Source URL: https://github.com/fintech-sdk/unit-sdk

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_IetcKpDkETpuFu-exEUv5A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Unit.co: error handling - UnitError fields and retry policy <span>— Vectle</span></a>