Ask Your Question

linkedin error after changing site URL

asked 2011-12-12 13:00:59 -0600

catdrich gravatar image

We were testing ASKBOT on an internal site, and changed it (with a redirect) after some testing. We made changes in 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:
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/ in complete_oauth_signin, line 273
Python Executable: /usr/bin/python
Python Version: 2.6.5
Python Path: ['/usr/lib/python2.6',

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



Request Method: GET
Request URL:

Django Version: 1.3.1
Python Version: 2.6.5
Installed Applications:
Installed Middleware:


Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/" in getresponse 111. response = callback(request, *callback_args, **callback_kwargs) File"/usr/local/lib/python2.6/dist-packages/askbot/deps/django_authopenid/"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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-12-13 06:33:43 -0600

catdrich gravatar image

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.

edit flag offensive delete link more

answered 2011-12-12 14:41:52 -0600

Evgeny gravatar image

updated 2011-12-12 14:51:12 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-12-12 13:00:59 -0600

Seen: 145 times

Last updated: Dec 13 '11