question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to create GitHub repo. Error: 422 Unprocessable Entity

See original GitHub issue

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.

Normally this include a stack trace and some more information.

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ivanderbu2commented, Jan 21, 2017

I got the same error right now, my setup:

MacOS Sierra Version 10.12.2

angular-cli: 1.0.0-beta.26 node: 7.2.0 “@angular/common”: “^2.3.1”, “@angular/compiler”: “^2.3.1”, “@angular/core”: “^2.3.1”, “@angular/forms”: “^2.3.1”, “@angular/http”: “^2.3.1”, “@angular/platform-browser”: “^2.3.1”

Error is the same as one mentioned above, no stack trace.

[UPDATE] I was able to fix this issue, it seems that angular-cli was not able to create gh branch for existing repository. After I deleted it I got an error that remote origin could not be created cause it already exists. So after I removed remote it worked fine. It would be helpful if this deploy command could give more feedback on exceptions and errors.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular cli Failed to create GitHub repo. Error - Stack Overflow
I'm having the same issue, this is after entering the github token, Failed to create GitHub repo. Error: 422 Unprocessable Entity. – Buminda....
Read more >
Unable to Follow Project: (HTTP Error 422) - CircleCI Support
If you do see the above errors, this suggests the presence of multiple CircleCI webhooks in the related repository settings. Solution. To ...
Read more >
Why am I getting a status code of 422 when making a call to ...
422 Unprocessable Entity - HTTP | MDN[^]. The error message is telling you that the search parameter needs to be identified by a...
Read more >
Share Project on GitHub: user-defined repository description ...
Failed to create GitHub Repository Can't create repository: SpringWebflow245_test2 422 Unprocessable Entity - Repository creation failed.
Read more >
Failed to create GitHub Repository 422 Unprocessable Entity
422 不可处理的实体-存储库创建失败。 [描述]自定义:不允许描述控件字符. 说明在我提交这个项目时呀,我输入了不止一行的备注, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found