Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect to proxy #13

Open
MarcoSero opened this issue Oct 20, 2013 · 3 comments
Open

Failed to connect to proxy #13

MarcoSero opened this issue Oct 20, 2013 · 3 comments

Comments

@MarcoSero
Copy link

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
Copy link
Member

stve commented Oct 21, 2013

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
Copy link
Author

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

abner added a commit to abner/em-twitter that referenced this issue Apr 9, 2014
Fixing proxy issue tweetstream#13
This was referenced Apr 9, 2014
@cedricdeboom
Copy link

Is this issue already solved?

niwatti pushed a commit to niwatti/em-twitter that referenced this issue Jun 26, 2015
@niwatti niwatti mentioned this issue Jun 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants