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
它工作了一段时间,但现在它只是在测试环境中工作。