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

Body is too long #55

Open
ymarcon opened this issue Jun 20, 2024 · 3 comments
Open

Body is too long #55

ymarcon opened this issue Jun 20, 2024 · 3 comments

Comments

@ymarcon
Copy link

ymarcon commented Jun 20, 2024

I have this error when deploying a release. Note that there is no <description> in the config, so I am not sure what is sent in the body.

[ERROR] Failed to execute goal de.jutzig:github-release-plugin:1.6.0:release (make-release) on project mica-dist: Failed to create release: {"message":"Validation Failed","errors":[{"resource":"Release","code":"custom","field":"body","message":"body is too long (maximum is 125000 characters)"}],"documentation_url":"https://docs.github.com/rest/releases/releases#create-a-release","status":"422"}
@ymarcon
Copy link
Author

ymarcon commented Jun 21, 2024

I have added a short <description> but the release creation still fails.

@ymarcon
Copy link
Author

ymarcon commented Jun 21, 2024

I think is because of
https://github.com/jutzig/github-release-plugin/blob/master/src/main/java/de/jutzig/github/release/plugin/UploadMojo.java#L192

The generated release note is always added and in our case it is very long. So I would suggest to either truncate the body content and/or make the release notes generation optional (default is true).

@jutzig
Copy link
Owner

jutzig commented Jul 1, 2024

Thank you for the report and analysis.
I wasn't aware of that character limit. Truncating seems like a good idea for this case.
I'll look into a fix

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

No branches or pull requests

2 participants