parseRetryAfterMs
function parseRetryAfterMs(err, body?): number | undefined;Defined in: core/src/errors.ts:627
How long the provider asked us to wait, in ms. Two dialects: Gemini’s
RetryInfo ("retryDelay": "52s", inside the body) and the Retry-After
header, which SDKs keep on the error. Honouring it beats guessing: a
backoff shorter than the window just burns an attempt.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
err |
unknown |
body? |
string |
Returns
Section titled “Returns”number | undefined