Hello, I have had this problem for a few days now (about a week)
The github tab hangs up to fetching changes state. Unable to give the fetch result.
Unable to commit new development. I could export to a new repository but nothingtells me it won't have the same problems. And the repository is linked to a Netlify site.
https://codesandbox.io/s/atelierlbf2020-z6e8t
| Software | Name/Version |
| ---------------- | ------------ |
| 小odesandbox | PROD-1580490943-2f3fa90ea
| Browser | chrome & firefox
| Operating System | Windows 10 (2 different laptops)
Thanks
Hey @Nico-L ,
Can you please take a look at the devtools console and see if there's any warnings or errors? Or even better, upload a screenshot of it. Thanks!
Here it is! I should have checked :

Mayube not related but I have the following errors when entering the sandbox:

The svgs are not from my side (I check since I used a template, I shouldn't have missed any...)
thanks
Any help ? I'd really need to update my repository...
thanks
OK. Export to a new repository doesn't work either, so I'm left with the last solution to download the zip and try to commit elsewhere. I'm am in the process and it turns out quite painful. Any hint on how to fix my issue would be most welcome.
I've had to do this many times
I think the reason is your code / my code is so large, the POST body being sent to github is too large for them to accept.
Codesandbox needs a different strategy for managing diffs, than posting the entirety at once, not sure the best way to do this, but VSCode doesnt run into this issue on linux machines, because it directly executes git vs posting to it. Perhaps if Codesandbox had a VM / container that would automate this, it would cost a little more money, but would resolve the issue for repos that are above a certain size...eliminating this issue.
I'm running into the issue as we speak: 422. The only difference is for some reason I cannot export to zip. The export feature is not currently working 馃槥
Also, the cause of failure to create was zip was one of the files in Codesandbox's storage was hitting a 404, so it caused the whole thing to fail on their end. Deleting that file allowed me to create a zip.
Still running into the 422, which is a huge hastle
@NawarA Please share the url to the sandbox you're having issues with. This often occurs because of a particularly large binary or log file, so it's worth checking your sandbox for that.
@garethx did you take a look? I'd like to take down my code if you dont need a public link any longer
@NawarA I did, but your explanation looks like it's the case here - I couldn't see any unusually large file as the cause. This is an area of the product we're currently looking at revising, so I'll flag this to the team as an example.
My new sandbox, which is a fork of my old one, is running into this issue again.
How do I avoid this? Its annoying to constantly have to fork my repo, try to do small changes to my react app, and hope my coding doesn't overflow your system. I'm not doing anything crazy, just working on a few components. Any way to completely avoid this? Why is it occuring in the first place?
Request
curl "https://codesandbox.io/api/v1/sandboxes/vyv91/git/diff" ^
-H "authority: codesandbox.io" ^
-H "accept: application/json, text/plain, */*" ^
-H "authorization: Bearer STRIPPED_THIS_OUT" ^
-H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" ^
-H "sec-fetch-site: same-origin" ^
-H "sec-fetch-mode: cors" ^
-H "sec-fetch-dest: empty" ^
-H "referer: https://codesandbox.io/s/frontend-vyv91?file=/src/App.js" ^
-H "accept-language: en-US,en;q=0.9" ^
-H "cookie: visit_sandbox=1; visitor-uid=i82ef5mye2; __stripe_mid=35ba12df-d5a5-43d2-b616-b2c16452dd25; __cfduid=d729f407c4816748f42ee04b853717b741585603649; _ga_ZBMWTZ87Y9=GS1.1.1586919668.7.0.1586919668.60; _ga=GA1.2.453574545.1579891322; __vero_user=29254be7aede3b6c0d854d2a60793edeef897fb5; signedIn=true; _gid=GA1.2.854899449.1587921827; __vero_visit=true; jf9248hHFEQIU42jf298=80ceec99-e70d-4cde-b37c-09f8ab61ebec; __veroc4=^%^5B^%^5D; _gat_UA-89432508-1=1; amplitude_id_a205ed9b06a7baf5a594bdd30293aa80codesandbox.io=eyJkZXZpY2VJZCI6ImY5NTAxM2VjLTgzYTMtNDJmMC05MzIwLWMwZmVhZTgwMmQ4Y1IiLCJ1c2VySWQiOiIyOTI1NGJlN2FlZGUzYjZjMGQ4NTRkMmE2MDc5M2VkZWVmODk3ZmI1Iiwib3B0T3V0IjpmYWxzZSwic2Vzc2lvbklkIjoxNTg4MDE4ODMyNDY5LCJsYXN0RXZlbnRUaW1lIjoxNTg4MDI0ODY3MzI3LCJldmVudElkIjo5NTU0MCwiaWRlbnRpZnlJZCI6NzY1LCJzZXF1ZW5jZU51bWJlciI6OTYzMDV9" ^
--compressed
Response:
{"errors":{"detail":["request entity too large"]}}
Codesandbox Version: d68f5dac3 (latest as of 4/27/2020)
Okay, to investigate further (and get around the issue of not being able to save to github...major bummer btw)... I created a whole new git repo, with 0 history, and I checked in my react app's files.
I created a new sandbox by importing the new github repo.
Unfortunately, the issue persists: cannot save to github because status 422 "entity too large"
These results imply the cause of the issue is the way the codesandbox application's diff is coded. It breaks when:
@garethx Is the function diff coded this way? I thought you mentioned there is a log somewhere...? If that's coded correctly, it shouldn't be effected by number of files / source code lines...it should only be effected by changes. Mind elaborating on the root cause?
Thanks 馃挭
That sounds right. We're working on some improvements to the GitHub flow which incorporates optimizing commits a great deal, which should resolve this.
My mention of log file above was in reference to the fact that a lot of times when folks encounter this issue it's because of a single large file, like a log file in someone's project, rather than many files. So it's usually quickly resolved by removing that. This isn't the case here.
Please let the community know when you've released a patch
馃檹
Hi, this issue is still open and ongoing.
To try to get around it, over the last 30 days I've tried creating several new repos, where I imported my code (with zero git history and zero large / long files). When I create a sandbox from the new historyless, small repos, I still cannot save back to Github.
I'd love to be able to save to Github. I'm sure the community feels the same way. This is important feature and breaks the DX.
Is this issue in your current sprint? Can you please share when you will place this in your sprint?
Its kinda a big deal to be able to save to Github 馃樃 鉂わ笍
It is currently being worked on. We will update this issue when it's ready to go.
@garethx quoting you:
That sounds right. We're working on some improvements to the GitHub flow which incorporates optimizing commits a great deal, which should resolve this.
It looks like the Github flow that incorporates optimizing commits did not resolve the open issue.
Screenshot below:

(in case that info is helpful)

Now that you released the Github flow optimizations, can please you share:
I suspect this is a simple fix on your backend 馃槅 so getting this prioritized and patched would be greatly appreciated 馃檹
Thank you dude
Duplicate of #2341 #1581 #4005 #2341
Lets consolidate the issue here. 馃敡
Can you try it again? We've made some changes, which will hopefully have resolved this. Thanks.
Success!
You rock dude!!

Most helpful comment
Success!
You rock dude!!