django-twitter-oauth connection refused

59 views
Skip to first unread message

ashy

unread,
Sep 3, 2010, 10:08:03 AM9/3/10
to Django users
Hi All,

I am using django-twitter-oauth app in my project, but I am getting
the following error while trying to connect to twitter.com.

Exception Value: (111, 'Connection refused')
Exception Location: /usr/lib/python2.6/socket.py in
create_connection, line 514

token = get_unauthorised_request_token(CONSUMER, CONNECTION)
resp = fetch_response(oauth_request, connection)
connection.request(oauth_request.http_method, url)

Also, Iam working behind proxy. How can I use oauth library behind
proxy? Any ideas.

thanks
ashy

Bill Freeman

unread,
Sep 3, 2010, 10:16:32 AM9/3/10
to django...@googlegroups.com
There was an email from twitter to it's users, yesterday or the day before,
saying that they've changed their auth API. I think it was a change to
requiring OAUTH, but you may want to check whether port or SSL changes
have occurred.

> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

ashwin morey

unread,
Sep 3, 2010, 10:26:35 AM9/3/10
to django...@googlegroups.com
Hi Bill,

Did you try using django-twitter-oauth http://github.com/henriklied/django-twitter-oauth#readme?
I got the error while using this app.

thanks
    ashy

Bill Freeman

unread,
Sep 3, 2010, 4:16:31 PM9/3/10
to django...@googlegroups.com
No. I'm not actually using twitter anywhere. I just remember the
email saying that the API changed on Tuesday, so I'm not surprised if
things that worked before are broken now.

ashy

unread,
Sep 6, 2010, 12:39:48 AM9/6/10
to Django users
Hi All,

Now I am getting 'Cannot send request' exception.
Exception Location: /usr/lib/python2.6/httplib.py in putrequest, line
802
Some problem with httplib. Any ideas?

thanks
ashwin

On Sep 4, 1:16 am, Bill Freeman <ke1g...@gmail.com> wrote:
> No.  I'm not actually using twitter anywhere.  I just remember the
> email saying that the API changed on Tuesday, so I'm not surprised if
> things that worked before are broken now.
>
> On Fri, Sep 3, 2010 at 10:26 AM, ashwin morey <ashwinmo...@gmail.com> wrote:
> > Hi Bill,
>
> > Did you try using django-twitter-oauth
> >http://github.com/henriklied/django-twitter-oauth#readme?
> > I got the error while using this app.
>
> > thanks
> >     ashy
>
> > On Fri, Sep 3, 2010 at 7:46 PM, Bill Freeman <ke1g...@gmail.com> wrote:
>
> >> There was an email from twitter to it's users, yesterday or the day
> >> before,
> >> saying that they've changed their auth API.  I think it was a change to
> >> requiring OAUTH, but you may want to check whether port or SSL changes
> >> have occurred.
>
> >> On Fri, Sep 3, 2010 at 10:08 AM, ashy <ashwinmo...@gmail.com> wrote:
> >> > Hi All,
>
> >> > I am using django-twitter-oauth app in my project, but I am getting
> >> > the following error while trying to connect to twitter.com.
>
> >> > Exception Value:        (111, 'Connectionrefused')

Bill Freeman

unread,
Sep 7, 2010, 4:18:03 PM9/7/10
to django...@googlegroups.com
I apparently have a different vintage of httplib in my 2.6, since the
raise CannotSendRequest()
is on line 778.

It seems to mean reuse of an HTTPConnection object that isn't idle.

Maybe a threading problem? Does this happen with the development server?
pdb is your friend (standard advice).

Bill

Reply all
Reply to author
Forward
0 new messages