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 500 - No Protocol #29

Closed
bradgignac opened this issue Jan 24, 2013 · 10 comments
Closed

Error 500 - No Protocol #29

bradgignac opened this issue Jan 24, 2013 · 10 comments

Comments

@bradgignac
Copy link

When attempting to use the GitHub OAuth plugin with GitHub Enterprise, I'm receiving a 500 status code after GitHub redirects back to Jenkins.

URL: http://ci.canon.rackspace.com/securityRealm/finishLogin?code=REDACTED
Stacktrace: https://gist.github.com/4623038

It's unclear to me whether this is an issue in the Java API bindings or the GitHub OAuth plugin.

@johnou
Copy link
Collaborator

johnou commented Jan 24, 2013

Your endpoint should be defined as either https://github.rackspace.com (recommended) or http://github.rackspace.com

@bradgignac
Copy link
Author

@johnou From my Jenkins security configuration screen, here's the GitHub URI that I'm using.

@johnou
Copy link
Collaborator

johnou commented Jan 24, 2013

I will have it fixed in a few hours, just need to finish my day job.

@bradgignac
Copy link
Author

@johnou It looks like it might be an issue in the GitHub OAuth plugin. This line removes the protocol prefix from the GitHub URL before calling connectUsingOAuth on the GitHub class.

@johnou
Copy link
Collaborator

johnou commented Jan 24, 2013

@kohsuke would you please release a new version of kohsuke/github-api when you get a moment? I gave it a shot locally however the gpg goal caused problems.. :)

@johnou
Copy link
Collaborator

johnou commented Jan 24, 2013

@bradgignac try out github-oauth-0.13 and let me know how it goes.

@bradgignac
Copy link
Author

@johnou You're the man! As soon as it shows up on updates,jenkins-ci.org, I'll give it a try and let you know.

@johnou
Copy link
Collaborator

johnou commented Jan 27, 2013

@bradgignac I am right in understanding that for GitHub Enterprise the login url is http://ghe.acme.com/login/oauth/access_token not http://ghe.acme.com/api/v3/login/oauth/access_token ?

@bradgignac
Copy link
Author

@johnou Yeah, that's correct.

@kohsuke
Copy link
Collaborator

kohsuke commented Mar 30, 2013

IIUC, this ticket doesn't belog here. Closing.

@kohsuke kohsuke closed this as completed Mar 30, 2013
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

3 participants