Why am I getting 400 'Request blocked'?

ClearRun's safety checks refused the request. When the content is blocked, score, evaluate and chat all return 400 { "error": "Content blocked", "code": "CONTENT_BLOCKED" }. Request blocked with code ACTION_NOT_ALLOWED means the request asked ClearRun to do something it doesn't do.

Last updated

The two bodies

The two bodies
BodyMeans
{ "error": "Content blocked", "code": "CONTENT_BLOCKED" }The text was refused by a safety check. Same on score, evaluate and chat
{ "error": "Request blocked", "code": "ACTION_NOT_ALLOWED" }The request carried instructions or fields aimed at ClearRun

The difference: Content blocked is about the content itself, and Request blocked is for text that tries to give instructions to ClearRun itself.

What to try

  • Send only the answer, without instructions aimed at ClearRun or extra JSON fields it doesn't use.
  • Remove encoded blobs, scripts or long strings of escaped characters.
  • If an ordinary answer is blocked, email contact@adepoco.com with the time of the call. Don't include secrets.

Was it charged?

No. Blocked requests are refused before scoring.