History import configuration unusable

What the GithubHistoryConfigUnusable error (422 Unprocessable Content) means, the fields it carries, and the endpoints that return it.

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/github-history-config-unusable. See Errors and status codes for the shape every error shares.

<repository> has no .lingo/config.json on its default branch, so its history names no translation files. Add one with the source locale, target locales and source-file patterns, then import again. Commits made before it existed are read with it.

Fields #

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
repositorystring
problem"missing" | "invalid"

Example #

json
{
  "detail": "<repository> has no .lingo/config.json on its default branch, so its history names no translation files. Add one with the source locale, target locales and source-file patterns, then import again. Commits made before it existed are read with it.",
  "repository": "<repository>",
  "problem": "missing",
  "type": "https://lingo.dev/docs/api/errors/github-history-config-unusable",
  "status": 422,
  "title": "History import configuration unusable"
}

Returned by #

  • POST /v2/organizations/{orgId}/github/connections/{connectionId}/import-history