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

Error creating pull request: Unprocessable Entity #114

Closed
daniel opened this issue Dec 7, 2011 · 7 comments
Closed

Error creating pull request: Unprocessable Entity #114

daniel opened this issue Dec 7, 2011 · 7 comments

Comments

@daniel
Copy link

daniel commented Dec 7, 2011

I have problems with the pull-request command.

git pull-request -i 183
Error creating pull request: Unprocessable Entity (HTTP 422)

What does that mean? 183 is the number of an existing issue on GitHub.

@smerrill
Copy link

smerrill commented Dec 7, 2011

I get the same error when using -b, i.e.

git pull-request -b repo:branch

@smerrill
Copy link

smerrill commented Dec 7, 2011

D'oh. I had not pushed the branch I was on. Doing so fixed this.

@daniel
Copy link
Author

daniel commented Dec 9, 2011

That wasn't the problem I had, but it has worked for me recently. I don't know what is different now.

@mislav
Copy link
Owner

mislav commented Dec 9, 2011

That is the exception that GitHub throws when there's something wrong about the pull-request being created, for instance if another pull-request for the same fork+branch already exists. I should handle this exception with a better error message, but I can't know what exactly went wrong.

@evilmarty
Copy link

I get the same issue and I've made sure the branch has been pushed to github. I did some digging and found the error messages thrown by github, they are:
Head sha can't be blank
Base sha can't be blank
No commits between user:branch and evilmarty:new_branch

@mislav mislav closed this as completed in 4072568 Dec 21, 2011
@marr
Copy link

marr commented Feb 22, 2014

I know its an old issue but you mentioned adding better error messaging and now I'm still hitting an issue returning same error "Error creating fork: Unprocessable Entity (HTTP 422)". Steps to repro:

git clone [email protected]:PerlDancer/dancer-plugin-i18n.git
# make changes and commit
hub fork
# see error above.

I made sure my token was up to date but maybe the oauth scope needs more permissions, or can I not use hub fork like that?

@mislav
Copy link
Owner

mislav commented Mar 1, 2014

@marr Please update to v1.12.0 to see if your problem persists. If it's the same, in that release you can set the HUB_VERBOSE=1 hub fork environment variable to turn on detailed debug output about HTTP traffic which should help us figure out what's going on. After you've done that, feel free to open a separate issue with your info.

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

5 participants