Hi,

I have installed osqa on a site hosted on hostgator. The login functionality is working for google,yahoo,facebook. But when i click on twitter icon its generating an exception. I have already added the twitter consumer key and the twitter consumer secret through admin interface. The exception i am getting is:

HTTPError at /account/twitter/signin/

HTTP Error 401: Unauthorized

Request Method:     GET
Request URL:    http://mydomain/account/twitter/signin/?validate_email=yes
Exception Type:     HTTPError
Exception Value:    HTTP Error 401: Unauthorized
Exception Location: /usr/lib/python2.4/urllib2.py in http_error_default, line 480
Python Executable:  /usr/bin/python
Python Version:     2.4.3

I am unable to trace out the reason for the same.

Please help me on this.

Thanks

asked 26 May '10, 04:54

pankaj's gravatar image

pankaj
111585
accept rate: 100%

edited 26 May '10, 19:03

rickross's gravatar image

rickross ♦♦
12.5k2914972

Regenerating keys did end up working in the end. Twitter doens't recognize the keys until a long time later.

(26 Apr, 22:11) Alex Ch

Hi,

I removed the earlier application created in twitter and created a new one. Added the new keys through administration panel and it resolved my issue.But i am still unable to figure out what caused problem in my earlier application?

link

answered 26 May '10, 07:39

pankaj's gravatar image

pankaj
111585
accept rate: 100%

It was almost certainly something about your twitter app configuration or an error with the keys, or possibly a mere communication error at that moment.

BTW, please don't post at StackOverflow that something in OSQA doesn't work. Just ask here, and you'll get great help from our team. As you now see, OSQA's Twitter login works well, but you have posted at SO that it doesn't, and casual observers won't see the details. Bad for OSQA.

(26 May '10, 19:00) rickross ♦♦

pankaj, yes, you should remove that question from StackOverflow. This is the appropriate support forum for OSQA material

(02 Jun '10, 15:42) Joseph

Did you set your twitter key on the administration panel? You have to get a consumer key and secret with twitter, go to http://twitter.com/apps, create a new app (better make it read/write since we're planning to add some other twitter related coolness), and see http://meta.osqa.net/questions/72/where-do-i-enter-for-the-twitter-callback-url to know what to put in the callback url field.

If that's not the problem, then my appologies :-)

PS: Is python 2.4.3 the only python version on hostgator? Don't you have the chance to upgrade?

link

answered 26 May '10, 06:10

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

Thanks hernani for replying, i have already followed the steps as defined in http://wiki.osqa.net/display/docs/Adding+Twitter+Authentication+to+OSQA

As far as python is considered i am not sure whether hostgator have upgraded version or not.

Is version difference can be a problem? I am not sure because facebook authentication is working properly.

If it is caused by version difference what would you suggest?

(26 May '10, 06:17) pankaj

No the python version is not the problem, I just commented about it since is a bit old. The unauthorized error is being sent by twitter which means that by some reason is not liking your request. I'll investigate what are the possible causes for such a response a bit later.

(26 May '10, 06:40) Hernani Cerq... ♦♦

This brings up a usability point. We should maybe hide those login methods until you enter the keys and perhaps put a message on the login page (when there are no users) that if you want to enable facebook or twitter, please enter the proper keys.

(26 May '10, 07:18) matt ♦♦

@matt but this problem is not related to usability. I have followed all the steps as required.

(26 May '10, 07:24) pankaj
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×298
×40
×24
×9

Asked: 26 May '10, 04:54

Seen: 1,524 times

Last updated: 26 Apr, 22:22

powered by OSQA