2013-03-26 180 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' 

請幫我

回答