First time here? Check out the FAQ!
0

linkedin error after changing site URL

We were testing ASKBOT on an internal site, and changed it (with a redirect) after some testing. We made changes in setting.py to reflect the URL. Google, OpenID, Facebook, Yahoo all still work (we have been unsuccessful in getting Twitter to work yet). LinkedIn worked, but once we made the URL change it no longer works. I even made a new LinkedIn site and changed the keys in Askbot, but it still isn't working. Somewhere it appears it is still referencing the URL, etc. from the old site (ssdt-web-13). What do I need to do in order to get this to work again?

Some of the error message:
local variable 'oauth_provider_name' referenced before assignment
Request Method: GET
Request URL: http://ssdt-web-13.nwoca.org/account/signin/complete-oauth/?oauth_token=67cc64e9-ca38-429f-b3a7-f45c0247248c&oauth_verifier=98707
Django Version: 1.3.1
Exception Type: UnboundLocalError
Exception Value: local variable 'oauth_provider_name' referenced before assignment
Exception Location: /usr/local/lib/python2.6/dist-packages/askbot
/deps/django_authopenid/views.py in complete_oauth_signin, line 273
Python Executable: /usr/bin/python
Python Version: 2.6.5
Python Path: ['/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/dist-packages',
'/usr/local/lib/python2.6/dist-packages',
'/',
'/forum',
'/usr/local/lib/python2.6/dist-packages/askbot/deps']


AND from the META data in the error message:
wsgi.input <mod_wsgi.input object="" at="" 0xb8c72ae8&gt;="" <br=""> HTTP_HOST 'ssdt-web-13.nwoca.org'
mod_wsgi.callable_object 'application'


TRACEBACK:

Environment:

Request Method: GET
Request URL: http://ssdt-web-13.nwoca.org/account/signin/complete-oauth/?oauth_token=67cc64e9-ca38-429f-b3a7-f45c0247248c&oauth_verifier=98707

Django Version: 1.3.1
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.humanize',
'django.contrib.sitemaps',
'askbot',
'askbot.deps.django_authopenid',
'south',
'askbot.deps.livesettings',
'keyedcache',
'robots',
'django_countries',
'djcelery',
'djkombu',
'followit']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
'askbot.middleware.forum_mode.ForumModeMiddleware,

'askbot.middleware.pagesize.QuestionsPageSizeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware')

Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in getresponse 111. response = callback(request, *callback_args, **callback_kwargs) File"/usr/local/lib/python2.6/dist-packages/askbot/deps/django_authopenid/views.py"in completeoauth_signin 273. ) % { 'provider': oauth_provider_name}

Exception Type: UnboundLocalError at /account/signin/complete-oauth/ Exception Value: local variable 'oauth_provider_name'referenced before assignment

catdrich's avatar
81
catdrich
asked 2011-12-12 13:00:59 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

It works this morning. There must have been something cached somewhere, either on our server or something to do with LinkedIn. I appreciate your quick response to questions we have.

catdrich's avatar
81
catdrich
answered 2011-12-13 06:33:43 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

The value that is missing is saved in the session just after you hit the "linkedin" button, and retrieved from the session after you return from the linked in site.

So maybe something is wrong with the session (but if you can log in with other methods - it is unlikely).

Take a look into file log/askbot.log there might be something helpful there.

Sometimes as I said before server time gets out of sync - you should have a cron job synchronizing the server clock, not sure if it is relevant in this particular case though.

Evgeny's avatar
13.2k
Evgeny
answered 2011-12-12 14:41:52 -0600, updated 2011-12-12 14:51:12 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments