Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8672641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:15:18+00:00 2026-06-12T19:15:18+00:00

I am using Tweetstream gem for Rails and keep getting stuck waiting for any

  • 0

I am using Tweetstream gem for Rails and keep getting stuck waiting for any update..

I basically do the example (with my oauth data etc. of course):

    require 'Tweetstream'

TweetStream.configure do |config|
  config.consumer_key       = 'consumer_key'
  config.consumer_secret    = 'secret'
  config.oauth_token        = 'token'
  config.oauth_token_secret = 'token_secret'
  config.auth_method        = :oauth
end

TweetStream::Client.new.sample do |status|
      puts "SOMETHING HERE?"
  puts "#{status.text}"
end

and nothing happens… the console is just waiting forever for anything to happen..

not even “SOMETHING HERE?” is getting printed..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:15:19+00:00Added an answer on June 12, 2026 at 7:15 pm

    I’ll take a wild guess and say you are putting this in an initializer? The gem doesn’t work this way. TweetStream is an event-based library and has a different runtime profile from that of a Rails app.

    You will need to run TweetStream side by side with Rails as a daemon process collecting the tweets, storing them on a DB and Rails will access that same DB.

    Use Rails Runner (http://guides.rubyonrails.org/command_line.html#rails-runner) to run your TweetStream daemon on the context of Rails, this should give you access to the models.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Tweetstream gem to monitor a single twitter userstream and am looking to
I am using the Tweetstream gem to retrieve statuses from Twitter. This works: Tweetstream::Client.new('user',
Using Rails 3.2.0 with haml, sass and coffeescript: Basically I am trying to disable
Using Rails and ActiveResource i am getting non-rails style of XML response form third-party
I'm using TweetStream (https://github.com/joshmarshall/TweetStream), a tornado based twitter streaming module to monitor the stream
Using the Qt library, is there a way to automatically update a QDateTimeEdit using
using Telerik.WinControls.Data; using Telerik.WinControls.UI.Export; namespace Directory { public partial class radForm : Form {
Using linq2sql I'm trying to take the string in txtOilChange and update the oilChange
Using Rails 3.2.0 with haml and sass: I Would like to link an external
Using the new mvc4 now gives us access to use facebook oauth otb. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.