socket.error: [Errno 61] Connection refused

1,322 views
Skip to first unread message

Chad Barraford

unread,
Sep 30, 2011, 11:39:41 PM9/30/11
to tweepy
I suddenly started getting the following error when streaming tweets.
Any ideas?

Traceback (most recent call last):
File "path..", line 272, in <module>
if __name__ == '__main__': main()
File "path..", line 61, in main
stream.sample()
File "build/bdist.macosx-10.7-intel/egg/tweepy/streaming.py", line
195, in sample
File "build/bdist.macosx-10.7-intel/egg/tweepy/streaming.py", line
161, in _start
File "build/bdist.macosx-10.7-intel/egg/tweepy/streaming.py", line
107, in _run
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/httplib.py", line 740, in connect
self.timeout, self.source_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/socket.py", line 571, in create_connection
raise err
socket.error: [Errno 61] Connection refused

Josh Roesslein

unread,
Oct 1, 2011, 12:06:39 AM10/1/11
to twe...@googlegroups.com
Make sure you use HTTPS since Twitter only allows that for connecting now days.
This can be done by passing secure=True when constructing the stream.

Chad Barraford

unread,
Oct 1, 2011, 12:58:38 AM10/1/11
to tweepy
ahhh, thanks so much!!! Love the project, thanks for all your hard
work. It is appreciated! Go luck with appcelerator too!

On Oct 1, 12:06 am, Josh Roesslein <jroessl...@gmail.com> wrote:
> Make sure you use HTTPS since Twitter only allows that for connecting now
> days.
> This can be done by passing secure=True when constructing the stream.
>

Arthi

unread,
Oct 10, 2011, 2:06:50 AM10/10/11
to tweepy
Thank you for this answer! Worked perfectly!

On Sep 30, 9:06 pm, Josh Roesslein <jroessl...@gmail.com> wrote:
> Make sure you use HTTPS since Twitter only allows that for connecting now
> days.
> This can be done by passing secure=True when constructing the stream.
>
Reply all
Reply to author
Forward
0 new messages