vercel/ai · error · AISDKError

TranscriptionJobPollingTimedOut

TranscriptionJobPollingTimedOut

Error message

Transcription job polling timed out

What it means

Error "Transcription job polling timed out" thrown in vercel/ai.

Source

Thrown at packages/gladia/src/gladia-transcription-model.ts:267

      abortSignal: options.abortSignal,
      fetch: this.config.fetch,
    });

    // Poll the result URL until the transcription is done or an error occurs.
    // The result URL comes from the provider response; only send credentials
    // when it stays on the provider's own origin.
    const resultUrl = transcriptionInitResponse.result_url;
    const apiOrigin = this.config.url({ modelId: 'default', path: '' });
    let transcriptionResult;
    let transcriptionResultHeaders;
    const timeoutMs = 60 * 1000; // 60 seconds timeout
    const startTime = Date.now();
    const pollingInterval = 1000;

    while (true) {
      // Check if we've exceeded the timeout
      if (Date.now() - startTime > timeoutMs) {
        throw new AISDKError({
          message: 'Transcription job polling timed out',
          name: 'TranscriptionJobPollingTimedOut',
          cause: transcriptionResult,
        });
      }

      const response = await getFromApi({
        url: resultUrl,
        // resultUrl comes from the provider response body.
        validateUrl: true,
        credentialedOrigin: apiOrigin,
        trustedOrigin: apiOrigin,
        headers: combineHeaders(this.config.headers?.(), options.headers),
        failedResponseHandler: gladiaFailedResponseHandler,
        successfulResponseHandler: createJsonResponseHandler(
          gladiaTranscriptionResultResponseSchema,
        ),
        abortSignal: options.abortSignal,

View on GitHub (pinned to 69428b1f8b)

When it happens

Trigger: Thrown at packages/gladia/src/gladia-transcription-model.ts:267 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of vercel/ai@69428b1f8b (2026-08-30). Data as JSON: /api/errors/02a8a33b3a322e80. Report an issue: GitHub.