HKUDS/nanobot · error · TranscriptionIngressError
empty
empty
Error message
empty
What it means
Sentinel error code 'empty' raised as TranscriptionIngressError: transcription completed but the provider returned an empty text, so there is no usable transcript to return to the WebUI. The temp audio file is already deleted before this raise.
Solutions
- Re-record the audio more clearly and retry
- Type the message instead of using transcription
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at nanobot/audio/transcription.py:195 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/nanobot@42f37dc4c0 (2026-08-26).
Data as JSON: /api/errors/47d4a5080f224541.
Report an issue: GitHub.
Appendix: source
Thrown at nanobot/audio/transcription.py:195
audio_path = save_base64_data_url(
data_url,
get_media_dir("webui-transcription"),
max_bytes=max_bytes,
)
except FileSizeExceeded as exc:
raise TranscriptionIngressError("size") from exc
except Exception as exc:
logger.warning("transcription audio decode failed: {}", exc)
if not audio_path:
raise TranscriptionIngressError("decode")
try:
text = await transcribe_audio_file(audio_path, config)
finally:
with suppress(OSError):
Path(audio_path).unlink(missing_ok=True)
if not text:
raise TranscriptionIngressError("empty")
return text
async def transcribe_audio_file(
file_path: str | Path,
config: EffectiveTranscriptionConfig,
) -> str:
"""Transcribe *file_path* using the already-resolved transcription config."""
if not config.enabled or not config.configured:
return ""
spec = get_transcription_provider(config.provider)
if spec is None:
logger.warning("Unknown transcription provider: {}", config.provider)
return ""
provider = spec.load_adapter()(
api_key=config.api_key,
api_base=config.api_base or None,
language=config.language,View on GitHub (pinned to 42f37dc4c0)