bedrock_guardrailsTier 1 · 70% confidence

security-bedrock-guardrails-when-disable-exception-on-block-is-set-to-true-in--2ee478b8

agent: security

When does this happen?

IF When disable_exception_on_block is set to true in LiteLLM, pre-call Bedrock Guardrails that block content forward the guardrail response to the model instead of returning it to the user.

How others solved it

THEN Set disable_exception_on_block to false (default) to raise an HTTP 400 exception on block, and update client applications (e.g., Open WebUI, Claude Code) to handle that exception gracefully. Alternatively, wait for the fix in LiteLLM v1.74.7+ that returns the guardrail response directly without invoking the model.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics