Connection Refused 111

256 views
Skip to first unread message

Leo Plaw

unread,
Sep 30, 2011, 6:22:08 AM9/30/11
to 140dev Twitter Framework
I am using the correct twitter account details, however I am seeing
the following in nohup.out.

Phirehose: Connecting to twitter stream: http://stream.twitter.com/1/statuses/filter.json
with params: array ( 'delimited' => 'length', 'track' => '#artist',)
Phirehose: Resolved host stream.twitter.com to 199.59.148.138
Phirehose: Connecting to 199.59.148.138
Phirehose: TCP failure 1 of 20 connecting to stream: Connection
refused (111). Sleeping for 1 seconds.

Why might this be?

gianfranco gliozzo

unread,
Sep 30, 2011, 6:30:42 AM9/30/11
to 140dev-twitt...@googlegroups.com
Hi Leo
Try to use httpS to connect to the streaming API.
StremingAPI works with SSL only from yesterday.
https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th.
Twitter changes frequently you have to remain in touch through the twitter accounts as @sitestreams for example.

Good luck

Gianfranco

2011/9/30 Leo Plaw <leo....@googlemail.com>

Adam Green

unread,
Sep 30, 2011, 7:24:58 AM9/30/11
to 140dev Twitter Framework
Sorry. I forgot to remind everyone about this change to the Streaming
API. The solution is here:
http://140dev.com/twitter-api-programming-blog/download-the-latest-version-of-phirehose/

Just switch to the latest Phirehose code, and the framework should
work fine.

Leo Plaw

unread,
Sep 30, 2011, 8:59:53 AM9/30/11
to 140dev Twitter Framework
Thanks for that Gianfranco and Adam. I just found the post myself. 8)

I've followed the instructions and now everything is working.

Thank you very much! 8)


On Sep 30, 1:24 pm, Adam Green <140...@gmail.com> wrote:
> Sorry. I forgot to remind everyone about this change to the Streaming
> API. The solution is here:http://140dev.com/twitter-api-programming-blog/download-the-latest-ve...

labbronx

unread,
Dec 25, 2014, 3:53:29 PM12/25/14
to 140dev-twitt...@googlegroups.com
I am using the latest Phirehose code and got the same message:
[25-Dec-2014 15:48:52] Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'follow' => '4255361,16715398,21291492,177644283,382301115,425976792',)
[25-Dec-2014 15:48:52] Phirehose: Resolved host stream.twitter.com to 199.59.148.138
[25-Dec-2014 15:48:52] Phirehose: Connecting to ssl://199.59.148.138, port=443, connectTimeout=5
[25-Dec-2014 15:48:52] Phirehose: TCP failure 7 of 20 connecting to stream:  (0). Sleeping for 16 seconds.

labbronx

unread,
Dec 25, 2014, 3:57:51 PM12/25/14
to 140dev-twitt...@googlegroups.com
[25-Dec-2014 15:52:37] Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'follow' => '4255361,16715398,21291492,177644283,382301115,425976792,@larrybookman',)
[25-Dec-2014 15:52:37] Phirehose: Resolved host stream.twitter.com to 199.59.148.138
[25-Dec-2014 15:52:37] Phirehose: Connecting to ssl://199.59.148.138, port=443, connectTimeout=5
[25-Dec-2014 15:52:37] Phirehose: TCP failure limit exceeded with 21 failures. Last error: 
[25-Dec-2014 15:52:37] PHP Fatal error:  Uncaught exception 'PhirehoseConnectLimitExceeded' with message 'TCP failure limit exceeded with 21 failures. Last error: ' in /admin/140dev/libraries/phirehose/Phirehose.php:659
Stack trace:
#0 /admin/140dev/libraries/phirehose/Phirehose.php(836): Phirehose->connect()
#1 /admin/140dev/libraries/phirehose/Phirehose.php(411): Phirehose->reconnect()
#2 /admin/140dev/db/get_tweets.php(61): Phirehose->consume()
#3 {main}
  thrown in /admin/140dev/libraries/phirehose/Phirehose.php on line 659

Ernest Humphrey

unread,
Jun 8, 2016, 2:38:54 PM6/8/16
to 140dev Twitter Framework
Hey did you ever find a fix to this problem? i'm having the same issue here......any advice?

Larry Bookman

unread,
Jun 8, 2016, 4:59:46 PM6/8/16
to 140dev-twitt...@googlegroups.com

Yes. It has been quite a while, but I think I did the following:

 

I figured out why the server went away. I inserted the line mysqli_query($this->dbh, 'SET wait_timeout = 90000');  in db_lib.php and then the program worked.

--
You received this message because you are subscribed to a topic in the Google Groups "140dev Twitter Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/140dev-twitter-framework/ViNwBszLslo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 140dev-twitter-fra...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

julio.d...@colombiasolutions.com

unread,
Mar 8, 2017, 6:11:46 PM3/8/17
to 140dev Twitter Framework
I'm having this exact same issue at the moment. Anyone at all know why this happens and how to fix it?

julio.d...@colombiasolutions.com

unread,
Mar 9, 2017, 4:57:04 PM3/9/17
to 140dev Twitter Framework, leo....@googlemail.com

I've tried to run this in both windows and linux. In both scenarios it shows this same message.

I've got the latest libraries as far as I know. Should I try replacing the packaged phirehose libraries with possibly newer ones?


julio.d...@colombiasolutions.com

unread,
Mar 10, 2017, 10:45:07 AM3/10/17
to 140dev Twitter Framework, leo....@googlemail.com
OK as an FYI... I tried updating the phirehose libs and it's running just fine it seems.
Reply all
Reply to author
Forward
0 new messages