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

Validation Failed [{Resource:IssueComment Field:body Code:custom Message:body is too long (maximum is 65536 characters)}] #30

Open
marita12345 opened this issue Apr 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@marita12345
Copy link

marita12345 commented Apr 3, 2024

We noticed a problem with commenting test results to PR and to commit messages when our tests were failing badly and there was lot of error messages in the failed tests table.

The error message we got was: PATCH https://api.github.com/repos/***ltd/xxx/issues/comments/2009605523: 422 Validation Failed [{Resource:IssueComment Field:body Code:custom Message:body is too long (maximum is 65536 characters)}]

This is most probably related to Github limitation mshick/add-pr-comment#93 (comment).

Would it be possible to cut the error messages shorter in case that the body would be longer than the maximum length allowed?

How to reproduce:

  • Only summary = false
  • Run tests so that really many tests are failing and producing error logs
    -> check the outcome

image

@joonvena joonvena added the enhancement New feature or request label Apr 3, 2024
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

2 participants