Soledad sync fails after the auth token has expired.
After the auth token has expired, attempts to synchronize soledad will raise an @InvalidAuthTokenError@ exception.
How to reproduce:
- Login to an account using Bitmask client.
- Wait enough time for the auth token to expire (default: 60 minutes).
Expected behaviour:
- While the client is logged in, the token should be renewed transparently and the sync should be successful.
Observed behaviour:
2015-03-12 10:10:20 ppto leap.mail.incoming.service[13443] DEBUG fetching mail for: 2658359ff4ae5c492b68c2f501f0ba3d drebs2@cdev.bitmask.net Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 525, in __bootstrap self.__bootstrap_inner() File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 505, in run self.__target(*self.__args, **self.__kwargs) --- --- File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 191, in _worker result = context.call(ctx, function, *args, **kwargs) File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext return func(*args,**kw) File "/home/drjohn/projetos/leap/repos/soledad/client/src/leap/soledad/client/sqlcipher.py", line 669, in _sync defer_decryption=defer_decryption) File "/home/drjohn/projetos/leap/repos/soledad/client/src/leap/soledad/client/sync.py", line 82, in sync defer_decryption=defer_decryption) File "/home/drjohn/projetos/leap/repos/soledad/client/src/leap/soledad/client/sync.py", line 103, in _sync sync_target.get_sync_info(self.source._replica_uid) File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/u1db/remote/http_target.py", line 46, in get_sync_info res, _ = self._request_json('GET', ['sync-from', source_replica_uid]) File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/u1db/remote/http_client.py", line 217, in _request_json content_type) File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/u1db/remote/http_client.py", line 209, in _request return self._response() File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/u1db/remote/http_client.py", line 156, in _response self._error(respdic) File "/home/drjohn/projetos/leap/envs/current/local/lib/python2.7/site-packages/u1db/remote/http_client.py", line 142, in _error raise exc_cls(message) leap.soledad.common.errors.InvalidAuthTokenError: 2015-03-12 10:10:21 ppto leap.mail.incoming.service[13443] DEBUG no docs found
(from redmine: created on 2015-03-12, closed on 2015-03-12)
- Relations:
- relates #6776 (closed)