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

Instantating new Oauth client #19

Open
Corstiaan84 opened this issue Nov 30, 2015 · 2 comments
Open

Instantating new Oauth client #19

Corstiaan84 opened this issue Nov 30, 2015 · 2 comments

Comments

@Corstiaan84
Copy link

Hi Guys,

Calling "EvernoteOAuth::Client.new(token: self.evernote_auth_token).note_store"

yields this error:

NoMethodError: undefined method []' for nil:NilClass from /app/vendor/bundle/ruby/2.2.0/gems/evernote_oauth-0.2.3/lib/evernote_oauth/client.rb:18:ininitialize'
from /app/app/models/seller.rb:89:in new' from /app/app/models/seller.rb:89:inconnect_to_evernote_note_store'
from /app/app/models/seller.rb:30:in get_evernote_activator_tag' from /app/app/jobs/process_incoming_evernote_request_job.rb:9:inperform'
from (irb):4
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/commands/console.rb:110:in start' from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/commands/console.rb:9:instart'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:68:in console' from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:inrun_command!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/commands.rb:17:in <top (required)>' from /app/bin/rails:4:inrequire'
from /app/bin/rails:4:in `

'

Ideas? :-) thanks!

p.s. All works fine in development...

@conch
Copy link
Contributor

conch commented Nov 30, 2015

It looks like you didn't fill in a config/evernote.yml file with the consumer key and secret.

@Corstiaan84
Copy link
Author

Ah, indeed. I was missing the production block in the yaml file. Thanks! Mighty be worth raising more descriptive errors though ;-)

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

3 participants
@conch @Corstiaan84 and others