{"record":{"id":"02a8a33b3a322e80","repo":"vercel/ai","slug":"transcriptionjobpollingtimedout","errorCode":"TranscriptionJobPollingTimedOut","errorMessage":"Transcription job polling timed out","messagePattern":"Transcription job polling timed out","errorType":"exception","errorClass":"AISDKError","httpStatus":null,"severity":"error","filePath":"packages/gladia/src/gladia-transcription-model.ts","lineNumber":267,"sourceCode":"      abortSignal: options.abortSignal,\n      fetch: this.config.fetch,\n    });\n\n    // Poll the result URL until the transcription is done or an error occurs.\n    // The result URL comes from the provider response; only send credentials\n    // when it stays on the provider's own origin.\n    const resultUrl = transcriptionInitResponse.result_url;\n    const apiOrigin = this.config.url({ modelId: 'default', path: '' });\n    let transcriptionResult;\n    let transcriptionResultHeaders;\n    const timeoutMs = 60 * 1000; // 60 seconds timeout\n    const startTime = Date.now();\n    const pollingInterval = 1000;\n\n    while (true) {\n      // Check if we've exceeded the timeout\n      if (Date.now() - startTime > timeoutMs) {\n        throw new AISDKError({\n          message: 'Transcription job polling timed out',\n          name: 'TranscriptionJobPollingTimedOut',\n          cause: transcriptionResult,\n        });\n      }\n\n      const response = await getFromApi({\n        url: resultUrl,\n        // resultUrl comes from the provider response body.\n        validateUrl: true,\n        credentialedOrigin: apiOrigin,\n        trustedOrigin: apiOrigin,\n        headers: combineHeaders(this.config.headers?.(), options.headers),\n        failedResponseHandler: gladiaFailedResponseHandler,\n        successfulResponseHandler: createJsonResponseHandler(\n          gladiaTranscriptionResultResponseSchema,\n        ),\n        abortSignal: options.abortSignal,","sourceCodeStart":249,"sourceCodeEnd":285,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/gladia/src/gladia-transcription-model.ts#L249-L285","documentation":"Error \"Transcription job polling timed out\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/gladia/src/gladia-transcription-model.ts:267 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}