Skip to content

Error reference

YouTube allowance used up

YouTube's daily API allowance for SkedCast is used up; try again after midnight Pacific time. The Retry-After header gives the seconds until it resets.

Code
youtube_units_exhausted
HTTP status
429
Category
rate-limit
Severity
warn
Retryable
Yes
Domain
posts

How to fix

Review the request and try again. The response `detail` explains the specific problem.

Example response

Every error is returned as application/problem+json (RFC 9457). The detail is the specific, actionable message; the code is stable and safe to branch on.

{
  "type": "https://skedcast.com/errors/youtube_units_exhausted",
  "title": "YouTube allowance used up",
  "status": 429,
  "category": "rate-limit",
  "code": "youtube_units_exhausted",
  "detail": "YouTube's daily API allowance for SkedCast is used up; try again after midnight Pacific time. The Retry-After header gives the seconds until it resets.",
  "correlationId": "c-1f2e3d4c-…",
  "severity": "warn"
}

Handle it in code

try {
  await skedcast.posts.create(input);
} catch (err) {
  if (err instanceof SkedcastApiError && err.code === 'youtube_units_exhausted') {
    // YouTube's daily API allowance for SkedCast is used up; try again after midnight Pacific time. The Retry-After header gives the seconds until it resets.
  }
}