Skip to content

Failed to connect to proxy #13

@MarcoSero

Description

@MarcoSero

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions