HKUDS/nanobot · error · TranscriptionIngressError

not_configured

not_configured

Error message

not_configured

What it means

Reason code 'not_configured' from transcribe_audio_data_url: transcription is enabled but the provider lacks required credentials/settings (e.g. missing API key), so no transcription backend is usable. The provider name is attached to the error.

Solutions

  1. Configure the transcription provider's API key and settings
  2. Switch to a transcription provider that is fully configured
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at nanobot/audio/transcription.py:162 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/5b5610be962352c4. Report an issue: GitHub.

Appendix: source

Thrown at nanobot/audio/transcription.py:162

        api_base=_resolve_transcription_api_base(provider, provider_cfg),
        max_duration_sec=int(getattr(top, "max_duration_sec", 120)),
        max_upload_mb=int(getattr(top, "max_upload_mb", 25)),
    )


async def transcribe_audio_data_url(
    data_url: Any,
    config: EffectiveTranscriptionConfig,
    *,
    duration_ms: Any = None,
) -> str:
    """Validate, persist, transcribe, and remove a WebUI audio data URL."""
    if not isinstance(data_url, str) or not data_url:
        raise TranscriptionIngressError("missing_audio")
    if not config.enabled:
        raise TranscriptionIngressError("disabled")
    if not config.configured:
        raise TranscriptionIngressError("not_configured", provider=config.provider)
    if (
        isinstance(duration_ms, (int, float))
        and duration_ms > (config.max_duration_sec * 1000 + 1000)
    ):
        raise TranscriptionIngressError("duration")
    if _extract_data_url_mime(data_url) not in _AUDIO_MIME_ALLOWED:
        raise TranscriptionIngressError("mime")

    audio_path: str | None = None
    max_bytes = max(
        1,
        config.max_upload_mb * 1024 * 1024 if config.max_upload_mb else _MAX_AUDIO_BYTES_FALLBACK,
    )
    try:
        audio_path = save_base64_data_url(
            data_url,
            get_media_dir("webui-transcription"),
            max_bytes=max_bytes,

View on GitHub (pinned to 42f37dc4c0)