libbyh
unread,May 17, 2011, 5:30:54 PM5/17/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to twitter4r-users
Hi all,
First, thanks for the gem. Rocks.
I'm building a new app to essentially "greenhose" some tweets, and I'm
getting an "HTTP 400: Bad Request at" response from Twitter::RESTError
even though my rate limit check says I have 20,000 hits left. Any idea
what's up?
This code:
rls = client.account_info
puts rls.remaining_hits.to_s + " remaining hits"
puts rls.hourly_limit.to_s + " hourly limit"
puts "Rate limit will reset in " + rls.reset_time_in_seconds.to_s + "
seconds at " + rls.reset_time.to_s
Returns:
20000 remaining hits
20000 hourly limit
Rate limit will reset in 1305670556 seconds at Tue May 17 22:15:56
+0000 2011
Then, this code:
begin
user_timeline = client.timeline_for(:user, :id => user, :since_id
=> since_status_id, :count => 200) do |tweet|
do stuff...
end
rescue Twitter::RESTError => re
puts re.to_s
end
Returns:
HTTP 400: Bad Request at
Any help is appreciated.
Take care,
LH