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 - Body is too long (maximum is 65536 characters) #40

Open
milkshakeuk opened this issue Feb 15, 2021 · 5 comments
Open

Comments

@milkshakeuk
Copy link

Hi,

When using this action, I get a validation failed error message:

Run 5monkeys/cobertura-action@master
  with:
    path: **/Cobertura.xml
    repo_token: ***
    pull_request_number: 145
    minimum_coverage: 0
    skip_covered: true
    show_line: false
    show_branch: false
    show_class_names: false
    show_missing: false
    only_changed_files: false
Error: Validation Failed: {"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}

https://github.com/nHapiNET/nHapi/actions/runs/566542886

What am I doing wrong? or is there a way around this?

@chenghuang-mdsol
Copy link

chenghuang-mdsol commented Feb 19, 2021

Don't use this action if your file is big.
the comment is based on github api and it has limitation of 65536 chars on json body
use reportgenerator instead, though it's slow under linux

@milkshakeuk
Copy link
Author

Okay makes sense, it might be nice to add a feature to give a simple result such as overall coverage and or coverage per project.
Thank you for responding!

@syamimikhalil
Copy link

Hi, i'm facing the same issue as well. Is there any workaround or upgrading features to allow large chars? Thanks!

@tibbing
Copy link

tibbing commented Jan 3, 2023

Also running into this issue. In our case we only want to fail the check if the coverage for updated code falls below the threshold, a PR comment is just a nice bonus. Would be nice to be able to disable it, that way we could still use this action.

ReportGenerator and similar actions don't seem to support coverage on changed code only.

@rjulius23
Copy link

Isnt it a bug here:
#76 (comment)

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

5 participants