django - python oauthlib: in escape ValueError "Only unicode objects are escapable" -


i'm using python-social-auth login social networks django application. on local machine works fine, when deploy server following error:

oauthlib.oauth1.rfc5849.utils in escape valueerror: unicode objects escapable. got none of type <type 'nonetype'>. 

stacktrace:

file "django/core/handlers/base.py", line 112, in get_response     response = wrapped_callback(request, *callback_args, **callback_kwargs) file "social/apps/django_app/utils.py", line 45, in wrapper     return func(request, backend, *args, **kwargs) file "social/apps/django_app/views.py", line 12, in auth     return do_auth(request.social_strategy, redirect_name=redirect_field_name) file "social/actions.py", line 25, in do_auth     return strategy.start() file "social/strategies/base.py", line 66, in start     return self.redirect(self.backend.auth_url()) file "social/backends/oauth.py", line 99, in auth_url     token = self.set_unauthorized_token() file "social/backends/oauth.py", line 158, in set_unauthorized_token     token = self.unauthorized_token() file "social/backends/oauth.py", line 177, in unauthorized_token     method=self.request_token_method) file "social/backends/base.py", line 202, in request     response = request(method, url, *args, **kwargs) file "requests/api.py", line 44, in request     return session.request(method=method, url=url, **kwargs) file "requests/sessions.py", line 349, in request     prep = self.prepare_request(req) file "requests/sessions.py", line 287, in prepare_request     hooks=merge_hooks(request.hooks, self.hooks), file "requests/models.py", line 291, in prepare     self.prepare_auth(auth, url) file "requests/models.py", line 470, in prepare_auth     r = auth(self) file "requests_oauthlib/oauth1_auth.py", line 87, in __call__     unicode(r.url), unicode(r.method), none, r.headers) file "oauthlib/oauth1/rfc5849/__init__.py", line 293, in sign     request.oauth_params.append(('oauth_signature', self.get_oauth_signature(request))) file "oauthlib/oauth1/rfc5849/__init__.py", line 128, in get_oauth_signature     uri, headers, body = self._render(request) file "oauthlib/oauth1/rfc5849/__init__.py", line 199, in _render     headers = parameters.prepare_headers(request.oauth_params, request.headers, realm=realm) file "oauthlib/oauth1/rfc5849/utils.py", line 31, in wrapper     return target(params, *args, **kwargs) file "oauthlib/oauth1/rfc5849/parameters.py", line 57, in prepare_headers     escaped_value = utils.escape(value) file "oauthlib/oauth1/rfc5849/utilsy", line 56, in escape     'got %s of type %s.' % (u, type(u))) 

some packages requirements.txt file:

django==1.6.6 google-api-python-client==1.1 oauth2==1.5.211 oauthlib==0.6.3 python-openid==2.2.5 python-social-auth==0.1.26 requests==2.4.0 requests-oauthlib==0.4.1 six==1.7.3 

i got error when did not provide oauth consumer key , secrets in django settings file. it's "required setting not found" error. worth checking settings copied across when deployed?


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -