Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 422 Unprocessable Entity: Description MaxSize #4

Open
Crayon2000 opened this issue May 22, 2021 · 1 comment
Open

HTTP 422 Unprocessable Entity: Description MaxSize #4

Crayon2000 opened this issue May 22, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Crayon2000
Copy link
Owner

Crayon2000 commented May 22, 2021

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 Crayon2000 added the enhancement New feature or request label May 22, 2021
@Crayon2000 Crayon2000 self-assigned this May 22, 2021
@Crayon2000
Copy link
Owner Author

Note: A PR was created to raise the limit from 255 to 512 in the Gogs API: gogs/go-gogs-client#123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant