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

502 Bad GateWay while committing to GitHub #8614

Open
BabithaSujannaDatagaps opened this issue Sep 16, 2024 · 0 comments
Open

502 Bad GateWay while committing to GitHub #8614

BabithaSujannaDatagaps opened this issue Sep 16, 2024 · 0 comments

Comments

@BabithaSujannaDatagaps
Copy link

🐛 bug report

Preflight Checklist

  • [ X] I have read the [Contributing Guidelines][contributing] for this project.
  • [ X] I agree to follow the [Code of Conduct][code_of_conduct] that this project
    adheres to.
  • [X ] I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

When I tried to commit to GitHub through the private account (Free account) using Rest API approximately 6MB with 1000 files , I facing a problem in creating commit tree, my payload size exceeds approximately 2.5Mb ( around 200-250 files). I got the 502 Bad Gate way, some times I got the 422 unprocessed entity with time out - payload is large exception (not always). https://api.github.com/repos/{owner}/{repo}/git/trees this is the restApi which gave me the exception. Then I tried to group my files in to small chunks with less than 2.5MB and tried to commit in a linear fashion for creating commit tree, I was able to commit all. The same thing when I tried with the enterprise edition(trial) I was able to commit the 1000 files in single short without any code change or any chunking.

It took weeks for me to analyze the issue, Why no proper exception message or documentation was there? could you please address this and let us know why this difference. Earlier in the staring of year 2024 I was able to commit files with this size above 6MB using free version.

(https://api.github.com/repos/BabithaSujanna/babi/git/trees)

this is my reptApi detail which caused the issue
My payload is a json file and not normal text file

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

1 participant