-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request failed with status code 422 #926
Comments
@CompuIves, any ideas on this? |
Is there a way to have CodeSandbox point to a specific entry point? |
Hey! I can't open the GitHub repository, could that be the reason that CodeSandbox has trouble importing it? This is giving a 404: https://github.com/SurLaTable/slt-ui/tree/feature/simpler |
I am no longer able to reproduce this (even with the old commit that I was using). Is there a way for CodeSandbox to read some |
@CompuIves, I am getting the error again, it must have to do with the slash in the branch name: |
@CompuIves, it is definitely the slash in the branch name. Can we improve branch parsing to escape the slashes? I was digging around for the parser but couldn't find it. |
Yep, that definitely could be it. We need a better way to detect the branch, we do that here currently: |
I don't see an example of escaping |
@CompuIves I'm also receiving this error, but it only happens when I try to submit a PR via CodeSandbox. No slash in the URL for this one. Only happens for some repos, e.g.: Student 1's toy project - Github Student 2's toy project - Github |
The CSB links in my above comment won't work anymore because we were able to get the PR functionality to work, but now it seems very spotty (most of the time it fails with a 422 error again). I haven't been able to figure out what steps make it work. I'll probably open my own issue for this. |
I am receiving 422s when exporting to GitHub as well. |
I'm getting them (seemingly randomly) again too. Here's the sandbox I'm trying to submit a PR for: https://codesandbox.io/s/3048m4orv6 Please let me know if there's been anything diagnosed for this, because it's making it really hard to use it in the way we want at our school. |
Update: it seems like any repository that contains a React app (bootstrapped with create-react-app) seems to have no issues at all with the PR feature. On the other hand, static websites seem to have the highest likelihood of getting the 422 error. I'll update this message if I find out more info that might help diagnose the problem. Update: Just tried a static web page again (with and without changing the template to "Vanilla" in the |
Hey @bobziroll, I can't seem to access the sandbox you linked here. Is it private perhaps? |
@CompuIves Shoot, I've since deleted it because I was testing out steps to fixing it. Sorry! Relating to testing what causes this - I seriously can't figure out any consistent pattern that causes the 422 error when trying to create the PR. I ran through the following steps:
On one of the attempts, both computers worked in creating a PR. On another attempt, one computer worked while another didn't. On the computer that didn't work, I logged out of their sandbox and github and logged into mine, then tried again and it worked fine. Then, (thinking it had something to do with my Github account and wanting to test that theory), I logged out of my Github/sandbox accounts and back into their accounts (assuming it wouldn't work and my theory would be validated), but this time the PR creation worked just fine! So I'm back to having 0 working theories as to what is causing the 422 error. |
Same problem. I have a React App and once I try to export it to GitHub repo I get 422 error |
Same problem here. |
My issue was different than the above cases, but I was also getting a 422 error (it seems to occur when you try to create a Github Repo when you already have one with the same name), so I hope this is helpful to someone: For a while I'd make a sandbox, export it to Github, then when redirected, be confused as to why the sidebar no longer showed and try to re-access the sandbox from my account dashboard... where the Github tab would ask to Create Repository and I'd try to make the repo again only to encounter an error as there would already be a repo named the same name under my account (created when I exported it the first time). Steps:
Solution: |
Hey @ryanpcmcquen , is this still an issue? If so, can you please provide a sandbox / github link experiencing this? (all the ones I tried from the OP and comments don't seem to work anymore) If not, can you please close it? Thanks! |
@lbogdan, here is one: https://codesandbox.io/s/github/SurLaTable/slt-ui/tree/bugfix/storeselector-doc-fix Which now gives a module limit issue. |
That's a legitimate error, caused by our current limit of 250 modules (files, really) per sandbox. |
How did you fix your issue? |
I know this is an old looking thread but I had this when trying to create React_TicTacToe. By removing the _ to make it ReactTicTacToe. It completed without the 422 code error. Nothing obvious in the browser - just got that processing image forever until I opened dev tools to find out what was going on :) On the github side of things I can now see a repo called React-tictactoe. Weird! |
Try this link https://github.com/codesandbox/codesandbox-client/issues/6556#issuecomment-1078777593 fixed for me. |
馃悰 bug report
Description of the problem
How has this issue affected you? What are you trying to accomplish?
I am trying to load and hack on my repo (https://github.com/SurLaTable/slt-ui/tree/feature/fix-codesandbox) using CodeSandbox.
Link to sandbox: link (optional)
Your Environment
| Browser: Chrome |
I get a 422 error ... I am not sure why. This only happens with branches that have a
/
in them.The text was updated successfully, but these errors were encountered: