0
我有一個服務器正在輪詢Twitter的提及。它在我的測試環境中效果很好,但在生產中它在一段時間後開始失敗。errorInvalid/used nonce - Twitter oauth - Ruby on Rails
我使用twitter_oauth gem 0.4.0。我看不出生產中有什麼不同。
client = TwitterOAuth::Client.new(
:consumer_key => 'k7P---------gTQ',
:consumer_secret => 'PDWa-------------ThaOBM',
:token => '1608769-------------------------igwp0YzHslh',
:secret => '00L-------------------------CZfZTt0'
)
last_index = self.fetch_message_index
s = client.mentions
它工作了一段時間,但現在它只是在測試環境中工作。