{"record":{"id":"2dc7769cd3381a5e","repo":"HKUDS/nanobot","slug":"size","errorCode":"size","errorMessage":"size","messagePattern":"size","errorType":"error_code","errorClass":"TranscriptionIngressError","httpStatus":null,"severity":"error","filePath":"nanobot/audio/transcription.py","lineNumber":183,"sourceCode":"        and duration_ms > (config.max_duration_sec * 1000 + 1000)\n    ):\n        raise TranscriptionIngressError(\"duration\")\n    if _extract_data_url_mime(data_url) not in _AUDIO_MIME_ALLOWED:\n        raise TranscriptionIngressError(\"mime\")\n\n    audio_path: str | None = None\n    max_bytes = max(\n        1,\n        config.max_upload_mb * 1024 * 1024 if config.max_upload_mb else _MAX_AUDIO_BYTES_FALLBACK,\n    )\n    try:\n        audio_path = save_base64_data_url(\n            data_url,\n            get_media_dir(\"webui-transcription\"),\n            max_bytes=max_bytes,\n        )\n    except FileSizeExceeded as exc:\n        raise TranscriptionIngressError(\"size\") from exc\n    except Exception as exc:\n        logger.warning(\"transcription audio decode failed: {}\", exc)\n    if not audio_path:\n        raise TranscriptionIngressError(\"decode\")\n\n    try:\n        text = await transcribe_audio_file(audio_path, config)\n    finally:\n        with suppress(OSError):\n            Path(audio_path).unlink(missing_ok=True)\n    if not text:\n        raise TranscriptionIngressError(\"empty\")\n    return text\n\n\nasync def transcribe_audio_file(\n    file_path: str | Path,\n    config: EffectiveTranscriptionConfig,","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/audio/transcription.py#L165-L201","documentation":"Error \"size\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/audio/transcription.py:183 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":"42f37dc4c0e409eac7818a82d165c5f2757bc075","analyzedAt":"2026-08-26T00:18:52.276Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}