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

GitHub.connectAnonymously() fails because of a lack of credentials. #39

Closed
Omertron opened this issue May 29, 2013 · 1 comment
Closed

Comments

@Omertron
Copy link

Using the following line:

GitHub github = GitHub.connectAnonymously();

Generates:
Exception in thread "main" java.lang.IllegalStateException: This operation requires a credential but none is given to the GitHub constructor
at org.kohsuke.github.GitHub.requireCredential(GitHub.java:197)
at org.kohsuke.github.GitHub.getMyself(GitHub.java:228)
at org.kohsuke.github.GitHub.(GitHub.java:127)
at org.kohsuke.github.GitHub.(GitHub.java:74)
at org.kohsuke.github.GitHub.connectAnonymously(GitHub.java:192)
at com.omertron.githubtest.GitHubTest.(GitHubTest.java:16)
at com.omertron.githubtest.App.main(App.java:8)

Note: I do not have a ".github" file in my user directory (nor do I want one, I just want to be able to access github anon from my code)

@kohsuke
Copy link
Collaborator

kohsuke commented May 10, 2014

The current trunk no longer contains this problem. We must have fixed it somewhere along the way.

@kohsuke kohsuke closed this as completed May 10, 2014
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

2 participants