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

Error Argument list too long with very large comment bodies #234

Closed
MatthewCane opened this issue Jul 21, 2023 · 2 comments
Closed

Error Argument list too long with very large comment bodies #234

MatthewCane opened this issue Jul 21, 2023 · 2 comments

Comments

@MatthewCane
Copy link

I am trying to post a very large message body (104k characters) containing the output of several Cloudformation changesets and I am getting the following error message:

An error occurred trying to start process '/home/runner/runners/2.306.0/externals/node16/bin/node' with working directory '/home/runner/work/<project>/<project>'. Argument list too long

If I copy the message body and make a comment manually it works, so I know this isn't a comment length limit. Is there anything that can be changed to facilitate this? I know it's a very large comment body and I may have to split it up over multiple comments but I would like to keep it as one if I can.

@peter-evans
Copy link
Owner

Hi @MatthewCane

There is information about why this happens here: #96

For your case, I recommend dumping the output to a file, and then using the body-path input to read the comment body from the file. This bypasses the limitation of the Actions runner, as described in the issue I linked above.

@MatthewCane
Copy link
Author

That's a great help, thank you!

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