-
-
Notifications
You must be signed in to change notification settings - Fork 849
Feature Request: On using a public token on a private repo and getting a 404, fail informatively #367
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
First timer here! Would really love to try and tackle this issue if I'm able to @olleolleolle |
Go ahead, make a test, make a PR, it's open! |
Hey @olleolleolle , is this still an issue even with the OctoKit gem? Or did the error change similar to #525 ? |
The errors from Octokit are good and fail with mention of the API, which helps guide the user. But, the specific thing, the token privilege group |
I should change the description field to reflect that that is what we need, if anything. |
Hey @olleolleolle, really excited to get started. I've been trying to familiarize myself with the code here and have been trying to pin down where to start. Just want to double check, but would this be a good starting place for this issue? https://github.com/skywinder/github-changelog-generator/blob/master/lib/github_changelog_generator/octo_fetcher.rb#L314-L317 Thank you for the guidance 😄 |
I believe this would be a great place to have more information.
Whether the longer explanation is presented directly there, in a man page or at a URL is a matter of refining.
Getting the basic tip into that abort string would help.
… On 31 May 2017, at 06:10, Alexander Delgado ***@***.***> wrote:
Hey @olleolleolle, really excited to get started. I've been trying to familiarize myself with the code here and have been trying to pin down where to start.
Just want to double check, but would this be a good starting place for this issue? https://github.com/skywinder/github-changelog-generator/blob/master/lib/github_changelog_generator/octo_fetcher.rb#L314-L317
Thank you for the guidance 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I have updated the Description of the Issue with the new backtrace and error raised. |
Example output that I'm thinking of would be usable by someone trying to get this to work:
|
Uh oh!
There was an error while loading. Please reload this page.
This feature is about adding a good failure message for when the tool quits on the user in this situation:
repos
permissionWhen having mis-configured github-changelog-generator, with a token with the wrong permissions (it needs
repos
to work), the error output is:This 404 from the GitHub API is an error which stops execution, and we could present a more informative error message, which speculated on possible causes and showed a link to the docs on making a token with private repo permissions.
Update for OctoKit: New error output, still unfriendly.
Error output backtrace
Example output that I'm thinking of would be usable by someone trying to get this to work:
The text was updated successfully, but these errors were encountered: