evmanhq/evman

Add to Slack gives undefined method error

DEGoodmanWilson opened this issue · 0 comments

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?