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

Add error handling for HttpError: Validation Failed: "message":"body is too long (maximum is 65536 characters)"} #26

Closed
AriPerkkio opened this issue Jul 10, 2022 · 0 comments · Fixed by #27

Comments

@AriPerkkio
Copy link
Owner

Prevent GithubClient from attempting to post +65k character long messages. A simple String.slice might not be enough since we don't want to break formatting of markdown.

/**
* Post results to existing issue as comment or create new issue using
* results as body
*/
async postResults(body: string): Promise<void> {

There is already some result limitation in place:

  • Count of results are limited by max-result-count configuration option.

const limitedResults = results.slice(0, maxResultCount);

References jsx-eslint/eslint-plugin-react#3327

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

Successfully merging a pull request may close this issue.

1 participant