2013-03-26 242 views
0

上午omniauth,Evernote的宝石Ominauth-的Evernote,的OAuth ::使用了未经授权401未授权

omniauth.rb

provider :evernote, EVERNOTE_CONSUMER_KEY, EVERNOTE_CONSUMER_SECRET ,:client_options => { :site => 'https://www.evernote.com' } 

我不能够理解为什么会发生 如果我尝试沙箱 'https://sandbox.evernote.com'一切工作完全正确。但我需要制作。

在服务器日志,这是错误

OAuth::Unauthorized (401 Unauthorized): 
    oauth (0.4.7) lib/oauth/consumer.rb:216:in `token_request' 
    oauth (0.4.7) lib/oauth/consumer.rb:136:in `get_request_token' 
    omniauth-oauth (1.0.1) lib/omniauth/strategies/oauth.rb:29:in `request_phase' 

请帮我

回答