Skip to main content

Rule-based fix: the file language is not supported

typehttps://docs.frem.sh/reference/api/errors/rule-fix-language-not-supported
HTTP status422 Unprocessable Content

What it means

Returned by POST /orgs/{org}/code-security/secrets/findings/{id}/fix and POST /orgs/{org}/code-security/iac/findings/{id}/fix (rule-based fixes). No fix was requested and no pull request was opened.

A rule-based secret fix moves the credential into an environment variable read at runtime. It is offered only for Go, Python, JavaScript and TypeScript files.

Example detail message returned with this error:

  • A credential is moved to an environment variable only in Go, Python, JavaScript and TypeScript files.

The response also carries "reason": "language_not_supported".

What to do

Move the credential by hand, then rotate it.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/rule-fix-language-not-supported",
  "title": "Unprocessable Content",
  "status": 422,
  "detail": "...",
  "reason": "language_not_supported"
}

Branch on type, not on title or detail - those are human-readable and may be reworded.