{"record":{"id":"b22a2efbf00a8d70","repo":"diegosouzapw/OmniRoute","slug":"message-parseapierror-result","errorCode":null,"errorMessage":"message (parseApiError result)","messagePattern":"message \\(parseApiError result\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/cache/media/MediaPageClient.tsx","lineNumber":566,"sourceCode":"        const res = await fetch(config.endpoint, {\n          method: \"POST\",\n          headers: { \"Content-Type\": \"application/json\" },\n          body: JSON.stringify({\n            model: modelId,\n            input: promptValue,\n            voice: speechVoice,\n            response_format: speechFormat,\n          }),\n        });\n        if (!res.ok) {\n          const raw = await res.json().catch(() => ({}));\n          const { message, isCredentials } = parseApiError(\n            raw,\n            res.status,\n            t(\"requestFailed\", { status: res.status })\n          );\n          setIsCredentialsError(isCredentials);\n          throw new Error(message);\n        }\n        const blob = await res.blob();\n        const audioUrl = URL.createObjectURL(blob);\n        setResult({\n          type: \"speech\",\n          data: { format: speechFormat },\n          timestamp: Date.now(),\n          audioUrl,\n        });\n        setLoading(false);\n        return;\n      }\n\n      if (activeTab === \"transcription\") {\n        if (!audioFile) {\n          setError(t(\"selectAudioToTranscribe\"));\n          setLoading(false);\n          return;","sourceCodeStart":548,"sourceCodeEnd":584,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/cache/media/MediaPageClient.tsx#L548-L584","documentation":"Error \"message (parseApiError result)\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/cache/media/MediaPageClient.tsx:566 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}