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

Gem Load Error is: uninitialized constant OmniAuth::OAuth2::Response #12

Open
taiyop opened this issue Jun 9, 2020 · 3 comments
Open

Comments

@taiyop
Copy link

taiyop commented Jun 9, 2020

Hi,

I couldn't start rails app because of Gem Load Error is: uninitialized constant OmniAuth::OAuth2::Response.

environments

  • ginjo-omniauth-slack 2.5.0.pre10
  • omniauth-oauth2 1.6.0
  • oauth2 1.4.4
  • ruby 2.3.1
  • rails 5.2.2

When I comment out the following refine block, I could start it.

module OmniAuth
  module Slack
        
    module OAuth2Refinements
      refine OAuth2::Response do
        # TODO: This might not be used any more.
        def to_auth_hash
          Module.const_get('::OmniAuth::Slack::AuthHash').new(parsed)
        end
      end
    end
@ginjo
Copy link
Owner

ginjo commented Jun 12, 2020

Hi @taiyop . I wasn't able to reproduce the error that you found, but I did find some other errors that may or may not have been part of the issue. I reworked some of the code, including where you found the error. Give the master branch a try now, and let me know if it fixes the problem.

@taiyop
Copy link
Author

taiyop commented Jun 24, 2020

Hi @ginjo.
Thank you for your reply. :)

Now I update this gem to v2.5.0, so I could resolve this issue.
↓ the following code may resolve this.
f4c24b4#diff-3c39ff960a38f71f09b3dfd28f5aaf79R17

So please close this issue if you don't need this issue anymore.

Thanks a lot.

@ginjo
Copy link
Owner

ginjo commented Jun 24, 2020

Thanks @taiyop , I'll close this issue. But feel free to post back or open it again if you continue to have errors.

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