tweetstream / em-twitter

Twitter Streaming API client for EventMachine
http://rubygems.org/gems/em-twitter
MIT License
42 stars 16 forks source link

Failed to connect to proxy #13

Open MarcoSero opened 10 years ago

MarcoSero commented 10 years ago

Hello

I am using em-twitter through tweetstream, but I can't get it working with a http proxy.

This is my stack trace, basically it just can't connect to the proxy:

/Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/tweetstream-2.5.0/lib/tweetstream/client.rb:436:in `block in connect': Failed to reconnect after 11 tries. (TweetStream::ReconnectError)
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/em-twitter-0.2.2/lib/em-twitter/connection.rb:296:in `call'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/em-twitter-0.2.2/lib/em-twitter/connection.rb:296:in `invoke_callback'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/em-twitter-0.2.2/lib/em-twitter/connection.rb:268:in `rescue in schedule_reconnect'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/em-twitter-0.2.2/lib/em-twitter/connection.rb:263:in `schedule_reconnect'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/em-twitter-0.2.2/lib/em-twitter/connection.rb:93:in `unbind'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/eventmachine-1.0.3/lib/eventmachine.rb:1440:in `event_callback'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/tweetstream-2.5.0/lib/tweetstream/client.rb:388:in `start'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/tweetstream-2.5.0/lib/tweetstream/client.rb:131:in `filter'
    from /Users/Marco/.rvm/gems/ruby-1.9.3-p448/gems/tweetstream-2.5.0/lib/tweetstream/client.rb:122:in `locations'
    from twitter_stream.rb:25:in `<main>'

I tried on 2 different machines, my local dev environment with Charles set up as http proxy and the production machine, which uses a proxy to go out to the internet. On both machines, same result.

This is what I get in Charles, not sure if it's helpful:

screen shot 2013-10-20 at 16 42 20

Did anyone get it working?

EDIT: tried with SquidMan as well, same result unfortunately.

stve commented 10 years ago

I haven't used a proxy myself and don't have a Charles license to test with but will try to reproduce with squid.

MarcoSero commented 10 years ago

Thank you, really appreciate. If you want you can download Charles free trial, with limited 30 mins session: http://www.charlesproxy.com/download/

Let me know if I can help

cedricdeboom commented 9 years ago

Is this issue already solved?