I am using the twitter gem.
twitter = Twitter::REST::Client.new do |config|
config.consumer_key = TwitterConfig::CLIENT_ID
config.consumer_secret = TwitterConfig::CLIENT_SECRET
config.access_token = handle.access_token
config.access_token_secret = handle.access_secret
end
for i in 1..100
begin
twitter.search("Hello", {:count => 1})
rescue Exception => e
p "Error^^^^^^^^^ #{e.message}"
end
end
This loop failed 6-7 times with “Execution Expired” message and this happens consistently on every run.