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

Add to Slack gives undefined method error #41

Open
DEGoodmanWilson opened this issue Nov 21, 2018 · 0 comments
Open

Add to Slack gives undefined method error #41

DEGoodmanWilson opened this issue Nov 21, 2018 · 0 comments

Comments

@DEGoodmanWilson
Copy link

Hello!

I'm trying to run EvMan in a development environment on my own machine. I'm trying to get the Slack integration set up. I've got the App created on Slack, and the various credentials set up in the environment variables. But when I hit "Add to Slack", returning to the OAuth2 callback results in this:

Completed 500 Internal Server Error in 12893ms (ActiveRecord: 5.0ms)


undefined method `[]' for nil:NilClass excluded from capture: DSN not set
  
NoMethodError (undefined method `[]' for nil:NilClass):
  
app/components/authentication/omniauth_adapter.rb:7:in `initialize'
app/controllers/o_auth_controller.rb:9:in `new'
app/controllers/o_auth_controller.rb:9:in `callback'
config/initializers/slack.rb:8:in `call'

Look at omniauth_adapter.rb:7, this is the initialization function:

 5 def initialize auth_data 
 6       @data = auth_data.freeze
 7       @info = data[:info].freeze
 8       @credentials = @data[:credentials].freeze
 9       @extra = @data[:extra].freeze
 10   end

The problem seesm to be that data is nil because auth_data is nil.

I'm having a hard time understanding what the problem is here! Can you help?

@marekjelen marekjelen assigned marekjelen and unassigned marekjelen Feb 17, 2021
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