-
Notifications
You must be signed in to change notification settings - Fork 12k
Failed to create GitHub repo. Error: 422 Unprocessable Entity #4061
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
Comments
I did and there was a remote defined. I deleted my repo on github, removed the remote, and then re ran the github-pages command and it worked. |
If you had a remote defined then it sounds like a bug. |
just repeated the steps listed in my repro on the original and another machine and was unable to repro the error. Not sure what the cause was yesterday, perhaps this can be closed until seen again? |
I got the same error right now, my setup: MacOS Sierra Version 10.12.2 angular-cli: 1.0.0-beta.26 Error is the same as one mentioned above, no stack trace. [UPDATE] |
Closed via #4385. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Windows 10
Versions.
angular-cli: 1.0.0-beta.25.5
node: 6.9.2
os: win32 x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/router: 3.4.3
@angular/compiler-cli: 2.4.3
Repro steps.
use cli to create app.
create repo on github.
add repo as remote to newly created app
try
ng github-pages:deploy
follow instructions
=> error:
Failed to create GitHub repo. Error: 422 Unprocessable Entity
The log given by the failure.
Mention any other details that might be useful.
It looks like this happens because the cli attempts to create a repo itself (which already exists). Can the cli not check to see if a remote is already attached and if so just create the new branch with the deployed app? This error is not clear and requiring users to delete their repo on github (my workaround) seems like it is not the best solution.
The text was updated successfully, but these errors were encountered: