deepseek-ai/deepseek-harness · error · ScheduleInputError

time_out_of_range

time_out_of_range

Error message

The scheduled time must be representable as a four-digit-year RFC 3339 UTC instant.

What it means

Error "The scheduled time must be representable as a four-digit-year RFC 3339 UTC instant." thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/schedule/schedule/src/domain.ts:193

    || value.getUTCHours() !== parts.hour
    || value.getUTCMinutes() !== parts.minute
    || value.getUTCSeconds() !== parts.second
    || value.getUTCMilliseconds() !== parts.millisecond) {
    throw new ScheduleInputError('invalid_rule', 'The at value must be a real ISO calendar date and time.')
  }
  return epoch
}

/** Normalize an optional one-to-three digit fractional second to milliseconds. */
function milliseconds(value: string | undefined): number {
  return value === undefined ? 0 : Number(value.padEnd(3, '0'))
}

/** Require a safe, representable, strictly future UTC target. */
function futureInstant(epoch: number, now: number): string {
  if (!Number.isSafeInteger(now) || !Number.isSafeInteger(epoch)
    || epoch < MIN_FOUR_DIGIT_YEAR_MS || epoch > MAX_FOUR_DIGIT_YEAR_MS) {
    throw new ScheduleInputError(
      'time_out_of_range',
      'The scheduled time must be representable as a four-digit-year RFC 3339 UTC instant.',
    )
  }
  if (epoch <= now) {
    throw new ScheduleInputError('not_future', 'The scheduled time must be strictly in the future.')
  }
  const instant = new Date(epoch).toISOString()
  /* v8 ignore next -- an in-range integral Date always formats as the canonical UTC profile. */
  if (!UTC_INSTANT.test(instant)) {
    throw new ScheduleInputError(
      'time_out_of_range',
      'The scheduled time must be representable as a four-digit-year RFC 3339 UTC instant.',
    )
  }
  return instant
}

View on GitHub (pinned to b150a551b8)

Solutions

  1. Use a four-digit-year RFC 3339 UTC instant within the representable Date range.

When it happens

Trigger: Thrown at packages/schedule/schedule/src/domain.ts:193 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/f07ea0542f2299f4. Report an issue: GitHub.