You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Faraday ClientError issue due to version mismatch #665
Update to the latest Gem version (run bundle update github-pages)
This issue affects
The site generated by GitHub Pages
Building sites locally
The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.
What did you do (e.g., steps to reproduce)
Create a new repo locally, create a Gemfile with gem "github-pages", group: :jekyll_plugins, run bundle install and finally run bundle exec Jekyll serve.
What did you expect to happen?
The site to be built and served on localhost:4000.
What happened instead?
A build error was shown:
jekyll 3.8.5 | Error: uninitialized constant Faraday::Error::ClientError
Did you mean? Faraday::ClientError
Additional information
As far as I was able to narrow the issue down, it has something to do with faraday (1.0.0) being installed by the above listed steps. After manually lowering the version to 0.17.3 (the last release before 1.0.0) in Gemfile.lock and re-running bundle install, everything worked fine.
I cannot agree. When using the github-pages gem, you can expect that it works. If its dependencies are not reliable, it should pin them to a specific version and only update them if it's proven that they do not break anything.
Reacted by Anton Marin, Stephan Druskat, Boris van Hoytema, Atem Serem and adamgoossens
I've given this some thought over this week and my 2ct, as a group that uses GitHub pages a lot, we use this Gem to get the same local result as what happens when we push to GitHub pages. This means that we expect this Gem to simulate that environment as much as possible. This means it would make sense this Gem would pin as many versions as it can to what the actual GitHub Pages stack is currently running.
Sadly that is not a contribution I can make I think as I don't have access to that information. I suspect only GitHub insiders do.
Activity
parkr commentedon Jan 1, 2020
Would you please re-run with jekyll build — trace so we can see which library is attempting to use this error?
If not, I can attempt to reproduce in a week or two.
robdasilva commentedon Jan 1, 2020
@parkr Sure thing:
parkr commentedon Jan 1, 2020
Ah, octokit! Looks like a fix was merged: octokit/octokit.rb#1154
robdasilva commentedon Jan 1, 2020
@parkr Yes. Unfortunately, there has not been a release of
octokitsince...Atem18 commentedon Jan 1, 2020
Hi same error here :/
ny-a commentedon Jan 2, 2020
I had same error, and my workaronds are:
gem "faraday", "~> 0.17"intoGemfilein your projectgem "octokit", github: "octokit/octokit.rb", ref: "ae5838a"(or later such asbranch: "master") intoGemfilein your projectI think this problem is not this project's issue.
and octokit is going to be released next week. octokit/octokit.rb#1177
plata commentedon Jan 3, 2020
I cannot agree. When using the
github-pagesgem, you can expect that it works. If its dependencies are not reliable, it should pin them to a specific version and only update them if it's proven that they do not break anything.bvhme commentedon Jan 10, 2020
I've given this some thought over this week and my 2ct, as a group that uses GitHub pages a lot, we use this Gem to get the same local result as what happens when we push to GitHub pages. This means that we expect this Gem to simulate that environment as much as possible. This means it would make sense this Gem would pin as many versions as it can to what the actual GitHub Pages stack is currently running.
Sadly that is not a contribution I can make I think as I don't have access to that information. I suspect only GitHub insiders do.
Pin faraday to 0.17
Workaround for github/pages-gem#665
temporary workaround for github/pages-gem#665
Revert "temporary workaround for github/pages-gem#665"
Pin faraday to 0.17
bvhme commentedon Feb 2, 2020
If my last message was out of place or in bad form I'd like to extend my apology.
I'd like some pointers to go figure out how we can push this forward but have a hard time figuring out where to start. Any tips?
Thanks :)
robdasilva commentedon Feb 2, 2020
As was pointed out by @parkr the issue has been fixed in octokit/octokit.rb#1154 and was part of a recent release, see octokit/octokit.rb#1177 as @ny-a pointed out.
I think that pretty much solves it for now, so I'm going to close this issue.
Bump octokit requirement to ~> 4.18, which is compatible with faraday 1