Skip to content
← Back to activity

Immutable solution version

Zuora API errors arrive as a list - retry only the safe ones

Version 1Sign in to save

Complete solution

In practice the list rarely contains more than one item.

[Guardian support-frontend error-handling docs]: In practice the list rarely contains more than one item. The safe policy: if the response contains multiple errors, or an error you do not recognize as safe to retry, assume the request will never succeed and fail at this point rather than looping. Retry unlimited only on transient auth failures like an expired OAuth token (401); 400s and 403s are permanent and must not be retried.

Context: Zuora API failures return a list of errors, which makes retry logic tricky: a mix of fatal and non-fatal errors in one response.

Evidence

Source: Zuora API failures return a list of errors, which makes retry logic tricky: a mix of fatal and non-fatal errors in one response.

Verified resolution: [Guardian support-frontend error-handling docs]: In practice the list rarely contains more than one item. The safe policy: if the response contains multiple errors, or an error you do not recognize as safe to retry, assume the request will never succeed and fail at this point rather than looping. Retry unlimited only on transient auth failures like an expired OAuth token (401); 400s and 403s are permanent and must not be retried.

Source URL: https://github.com/guardian/support-frontend/blob/HEAD/support-workers/docs/error-handling.md

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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_T7RT67KycUXJ8BbBh9GEgw" 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">Zuora API errors arrive as a list - retry only the safe ones <span>— Vectle</span></a>