HTTP 422 Unprocessable Entity: Description MaxSize
Crayon2000 opened this issue · 1 comments
Crayon2000 commented
When importing from GitHub to Gogs I get this error.
Can be reproduced with
{
"name": "easyloggingpp",
"description": "Single header C++ logging library. It is extremely powerful, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.",
"homepage": "",
"private": false,
"has_issues": false,
"has_projects": true,
"has_wiki": false,
"has_downloads": true
}
In Gogs UI we see:
Description of repository. Maximum 512 characters length.
In fact with the API the limit is maximum 255. See https://github.com/gogs/go-gogs-client/blob/master/repo.go#L67
The description field should be truncated when creating a Gogs repository.
Crayon2000 commented
Note: A PR was created to raise the limit from 255 to 512 in the Gogs API: gogs/go-gogs-client#123