-
-
Notifications
You must be signed in to change notification settings - Fork 82
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: Cannot create a new GitHub Tree: Server Error #246
Comments
I'm getting this as well @BetaHuhn on the latest version of this Action. Example repo (you can probably fork and try syncing to your fork) - https://github.com/sammcj/github-app-installation-token/ This repo is a Github Action/App so it contains a node_modules folder as is required by Github. Debug logs:
|
Using |
Seem's like this still occurs in a very spastic way. Re-running the workflow has solved the issue before. |
I'm running into the same problem. The github API return a 502 error for the createTree request.
Maybe there is another way to determine the tree hash? |
@DocMarten Mine was the same case, and this workaround did the trick for me: Increase the
(Here I used an arbitrary value of 150MB for example) |
Hi, I have just created the PR #321 with a fix for this. I have done multiple tests and all of them works just fine but if any of you still have this kind of problem you can test it before it is merged. I'm sure that any additional feedback about the fix is welcome, you can test it temporally calling the action from my source branch of the PR:
I have been able to reproduce the problem with a big size repository and a small one, I was revisiting the API documentation and the error and even searching for the problem but I was not able to find any limit or reason why this was failing, but I suspect that this way of doing the tree was hitting a hidden limit in these cases. The PR changes the way the tree is constructed, previously it created a tree with any single file in the commit, but now creates the tree only with the changes and sets the parent commit tree as This produces a smaller request in almost all cases. |
@alvarezfr thanks a lot for this! it worked for me! it would be good to have this merged as we would like to avoid using a custom branch |
π This issue has been resolved in version 1.21.1 π The release is available on GitHub release Your semantic-release bot π¦π |
Still get this issue with the latest version of the action |
π Describe the bug
Hello when I am trying to use the action with a GitHub App, I am having this error. Any help is appreciated.
π To reproduce
π‘ Expected behavior
A PR against the specified branch to be created.
πΌοΈ Screenshots
βοΈ Environment
@v1
π Additional context
No response
The text was updated successfully, but these errors were encountered: