BerriAI/litellm · error · GuardrailRaisedException
Singulr API unreachable (block_on_error=True): {exc}
Error message
Singulr API unreachable (block_on_error=True): {exc} What it means
Error "Singulr API unreachable (block_on_error=True): {exc}" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py:173
return result
except httpx.HTTPStatusError as exc:
verbose_proxy_logger.error(
"Singulr API returned HTTP %s: %s",
exc.response.status_code,
str(exc),
)
if self.block_on_error:
raise GuardrailRaisedException(
guardrail_name=self.guardrail_name,
message=(f"Singulr API returned HTTP {exc.response.status_code}: {exc.response.text}"),
) from exc
return None
except httpx.TransportError as exc:
verbose_proxy_logger.error("Singulr API unreachable: %s", str(exc))
if self.block_on_error:
raise GuardrailRaisedException(
guardrail_name=self.guardrail_name,
message=f"Singulr API unreachable (block_on_error=True): {exc}",
) from exc
return None
except (ValueError, pydantic.ValidationError) as exc:
verbose_proxy_logger.error("Singulr API returned an invalid response: %s", str(exc))
if self.block_on_error:
raise GuardrailRaisedException(
guardrail_name=self.guardrail_name,
message=f"Singulr API returned an invalid response: {exc}",
) from exc
return None
@log_guardrail_information
async def apply_guardrail(
self,
inputs: GenericGuardrailAPIInputs,View on GitHub (pinned to 77b7c6c40c)
Solutions
- Verify network connectivity from the proxy to the Singulr api_base.
- If the outage is acceptable, set block_on_error=False so requests proceed when the API is down.
When it happens
Trigger: Thrown at litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py:173 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/5d25e41414f34c50.
Report an issue: GitHub.