pages-gem icon indicating copy to clipboard operation
pages-gem copied to clipboard

GitHub API errors

Open silvenon opened this issue 9 years ago • 4 comments

Before submitting an issue, please be sure to

This issue affects

  • [ ] The site generated by GitHub Pages
  • [x] Building sites locally

What did you do (e.g., steps to reproduce)

1.) bundle exec jekyll s 2.) make a file change

What happened?

GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
GitHub Metadata: GET https://api.github.com/repos/akudrna/akudrna.github.io/pages: 404 - Not Found // See: https://developer.github.com/v3
GitHub Metadata: GET https://api.github.com/repos/akudrna/akudrna.github.io/pages: 404 - Not Found // See: https://developer.github.com/v3

I don't believe I'm using anything that requires authentication.

I know that this is technically a jekyll/github-metadata issue, but info about this issue should be in this readme as well, because the jekyll_plugins group includes it by default and users might have a hard time figuring out where the message comes from.

I'm not an owner of that repository, but I'm a collaborator and have write access. I tried generating a token selecting the whole repo scope and setting it as JEKYLL_GITHUB_TOKEN, which only removed the first line of the error.

I found this solution on Jekyll Talk, I haven't tried it yet and decided to try raising this issue first.

I was trying to find out what the jekyll_plugins Bundler group does, all I could find was https://github.com/github/pages-gem/pull/255#issuecomment-198465076, but I would like to know what exactly it does.

silvenon avatar Dec 22 '16 22:12 silvenon

/cc @parkr for the work you're doing on API permissions.

benbalter avatar Dec 22 '16 23:12 benbalter

/cc https://github.com/jekyll/github-metadata/issues/83 which may also be related.

benbalter avatar Dec 22 '16 23:12 benbalter

While you don't need to have write or admin permissions on the repo, you still do need credentials for this to work properly. Anonymous API users (no credentials) are not presently allowed.

We should not be warning on 404 and we should be disabling the requests altogether when there are no credentials present. Thanks for filing the bug report!

parkr avatar Dec 22 '16 23:12 parkr

getting this when trying to locally run jekyll (on my own repo) and after changing a file. looks like a new error because it did work not too long ago. the error message itself is unhelpful, and sadly the solution link above is broken. any suggestions on how to fix this?

dret avatar Sep 16 '17 13:09 dret