Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Run the template error:uninitialized constant Faraday #27

Open
shiyuhang0 opened this issue Feb 8, 2023 · 1 comment
Open

Run the template error:uninitialized constant Faraday #27

shiyuhang0 opened this issue Feb 8, 2023 · 1 comment

Comments

@shiyuhang0
Copy link

shiyuhang0 commented Feb 8, 2023

Follow this guide https://docs.github.com/en/developers/apps/getting-started-with-apps/setting-up-your-development-environment-to-create-a-github-app and get error when i try to start the server in step 6

➜  github-app-template git:(master) ✗ bundle exec ruby template_server.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/go/bin in PATH, mode 040777
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/go/bin in PATH, mode 040777
Traceback (most recent call last):
        8: from template_server.rb:2:in `<main>'
        7: from template_server.rb:2:in `require'
        6: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.13.0/lib/octokit.rb:4:in `<top (required)>'
        5: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.13.0/lib/octokit.rb:4:in `require'
        4: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.13.0/lib/octokit/default.rb:1:in `<top (required)>'
        3: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.13.0/lib/octokit/default.rb:1:in `require'
        2: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.13.0/lib/octokit/middleware/follow_redirects.rb:9:in `<top (required)>'
        1: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.13.0/lib/octokit/middleware/follow_redirects.rb:11:in `<module:Octokit>'
/Library/Ruby/Gems/2.6.0/gems/octokit-4.13.0/lib/octokit/middleware/follow_redirects.rb:14:in `<module:Middleware>': uninitialized constant Faraday::Error::ClientError (NameError)
Did you mean?  Faraday::ClientError

@asterwyx
Copy link

asterwyx commented Mar 2, 2023

I've also got this error. It seems like that modify Faraday::Error::ClientError to Faraday::ClientError will solve this problem, but I don't think this is a correct action.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants