Dear ALL ,
i am trying to work with dropbox API i addedthe file dropbox.key in app/private and added the keys in it , i added the dropbox module and i am getting this error , any help ?
regards,
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 209, in restricted
exec ccode in environment
File "C:/web2py/applications/dropbox/models/db.py", line 67, in <module>
use_janrain(auth,filename='private/dropbox.key')
File "C:\web2py\gluon\contrib\login_methods\rpx_account.py", line 121, in use_janrain
domain,key = open(path,'r').read().strip().split(':')
ValueError: too many values to unpack
from gluon.contrib.login_methods.dropbox_account import use_dropbox
use_janrain(auth,filename='private/dropbox.key')
mydropbox = auth.settings.login_form
--
from gluon.contrib.login_methods.dropbox_account import use_dropbox
use_dropbox(auth,filename='private/dropbox.key')
mydropbox = auth.settings.login_form
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 209, in restricted
exec ccode in environment
File "C:/web2py/applications/dropbox/controllers/default.py", line 82, in <module>
File "C:\web2py\gluon\globals.py", line 187, in <lambda>
self._caller = lambda f: f()
File "C:/web2py/applications/dropbox/controllers/default.py", line 44, in user
return dict(form=auth())
File "C:\web2py\gluon\tools.py", line 1205, in __call__
return getattr(self,args[0])()
File "C:\web2py\gluon\tools.py", line 2016, in login
cas_user = cas.get_user()
File "C:\web2py\gluon\contrib\login_methods\dropbox_account.py", line 62, in get_user
access_token = self.sess.obtain_access_token(self.sess.token)
File "applications\dropbox\modules\dropbox\session.py", line 205, in obtain_access_token
response = self.rest_client.POST(url, headers=headers, params=params, raw_response=True)
File "applications\dropbox\modules\dropbox\rest.py", line 260, in POST
return cls.IMPL.POST(*n, **kw)
File "applications\dropbox\modules\dropbox\rest.py", line 207, in POST
post_params=params, headers=headers, raw_response=raw_response)
File "applications\dropbox\modules\dropbox\rest.py", line 183, in request
raise ErrorResponse(r)
ErrorResponse: [401] u'Token is disabled or invalid'
Regards,
--
--
1. |
Traceback (most recent call last |
): |
self._caller = lambda f: f |
() |
Create a file called "yourapp/private/dropbox.key" and in it write
<APP_KEY>:<APP_SECERT>:app_folder