After upgrading master today, syncing bbdb to gc fails with:

> Applying base config from file 
> /home/wilk/info/emacs/ASynK/config/config_v7.json...
> Applying base config from file 
> /home/wilk/info/emacs/ASynK/config/config_v7.json...done
> Applying user customizations from file /home/wilk/.asynk/config.py...
> Applying user customizations from file /home/wilk/.asynk/config.py...done
> [09:54:44.850     INFO] Debug logging to file: 
> /home/wilk/.asynk/logs/asynk_logs.2015-09-23.09-54-44.850389
> [09:54:44.850     INFO] Deleting log files older than 7 days, if any...
> [09:54:44.851     INFO] Deleting log files older than 7 days, if any...done
> [09:54:44.851     INFO] Parsing BBDB file /home/wilk/.bbdb...
> [09:54:44.851     INFO] Parsing BBDB Store with encoding utf-8...
> [09:54:44.959     INFO] Parsing BBDB Store with encoding utf-8...Success
> [09:54:44.959     INFO] Successfully parsed 540 entries.
> [09:54:44.960     INFO] Attempting to log into Google...
> [09:54:44.962     INFO] access_token is expired. Now: 2015-09-23 
> 07:54:44.962221, token_expiry: 2015-09-22 15:05:42
> Traceback (most recent call last):
>   File "/home/wilk/info/emacs/ASynK/asynk.py", line 321, in <module>
>     main()
>   File "/home/wilk/info/emacs/ASynK/asynk.py", line 318, in main
>     asynk.dispatch()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 97, in dispatch
>     res = getattr(self, self.get_op())()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 366, in op_sync
>     pname = self._load_profile()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 590, in 
> _load_profile
>     self._login()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 85, in _login
>     coll.login()
>   File "/home/wilk/info/emacs/ASynK/asynk/state_collection.py", line 336, in 
> login
>     self.get_username(), self.get_pwd())
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 71, in __init__
>     self.gc_init()
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 286, in gc_init
>     self.credentials.refresh(http=self._new_http())
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 244, in _new_http
>     debug = self.get_config().get_gc_logging()
>   File "/home/wilk/info/emacs/ASynK/asynk/state.py", line 355, in 
> get_gc_logging
>     return self.get_db_config('gc')['log']
> KeyError: 'log'
> Exception AttributeError: "'GCPIMDB' object has no attribute 'server'" in 
> <bound method GCPIMDB.__del__ of <pimdb_gc.GCPIMDB object at 0x7f39b3ce3d50>> 
> ignored


If I remove the dat file (because of the access_token expired message),
I get the authorization window and, after I accept, I get the following:

> Applying base config from file 
> /home/wilk/info/emacs/ASynK/config/config_v7.json...
> Applying base config from file 
> /home/wilk/info/emacs/ASynK/config/config_v7.json...done
> Applying user customizations from file /home/wilk/.asynk/config.py...
> Applying user customizations from file /home/wilk/.asynk/config.py...done
> [09:57:00.694     INFO] Debug logging to file: 
> /home/wilk/.asynk/logs/asynk_logs.2015-09-23.09-57-00.694450
> [09:57:00.694     INFO] Deleting log files older than 7 days, if any...
> [09:57:00.695     INFO] Deleting log files older than 7 days, if any...done
> [09:57:00.695     INFO] Parsing BBDB file /home/wilk/.bbdb...
> [09:57:00.695     INFO] Parsing BBDB Store with encoding utf-8...
> [09:57:00.807     INFO] Parsing BBDB Store with encoding utf-8...Success
> [09:57:00.807     INFO] Successfully parsed 540 entries.
> [09:57:00.807     INFO] Attempting to log into Google...
> [09:57:00.807     INFO] Starting to listen on port 1977...
> [09:57:00.808     INFO] Staring the wonderful oAuth dance...
> Using PPAPI flash.
> [6666:6666:0923/095702:ERROR:nss_util.cc(856)] After loading Root Certs, 
> loaded==false: NSS error code: -8018
> Created new window in existing browser session.
> [09:57:05.456     INFO] Successfully retrieved access token
> [09:57:05.634     INFO] Failed to retrieve access token: {
>   "error" : "invalid_grant",
>   "error_description" : "Code was already redeemed."
> }
> ----------------------------------------
> Exception happened during processing of request from ('127.0.0.1', 39693)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/SocketServer.py", line 295, in 
> _handle_request_noblock
>     self.process_request(request, client_address)
>   File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
>     self.finish_request(request, client_address)
>   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
>     self.handle()
>   File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
>     self.handle_one_request()
>   File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
>     method()
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 231, in do_GET
>     self.credentials = self.flow.step2_exchange(params)
>   File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 
> 142, in positional_wrapper
>     return wrapped(*args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 
> 2165, in step2_exchange
>     raise FlowExchangeError(error_msg)
> FlowExchangeError: invalid_grantCode was already redeemed.
> ----------------------------------------
> [09:57:05.866     INFO] Failed to retrieve access token: {
>   "error" : "invalid_grant",
>   "error_description" : "Code was already redeemed."
> }
> ----------------------------------------
> Exception happened during processing of request from ('127.0.0.1', 39697)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/SocketServer.py", line 295, in 
> _handle_request_noblock
>     self.process_request(request, client_address)
>   File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
>     self.finish_request(request, client_address)
>   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
>     self.handle()
>   File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
>     self.handle_one_request()
>   File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
>     method()
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 231, in do_GET
>     self.credentials = self.flow.step2_exchange(params)
>   File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 
> 142, in positional_wrapper
>     return wrapped(*args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 
> 2165, in step2_exchange
>     raise FlowExchangeError(error_msg)
> FlowExchangeError: invalid_grantCode was already redeemed.
> ----------------------------------------
> Traceback (most recent call last):
>   File "/home/wilk/info/emacs/ASynK/asynk.py", line 321, in <module>
>     main()
>   File "/home/wilk/info/emacs/ASynK/asynk.py", line 318, in main
>     asynk.dispatch()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 97, in dispatch
>     res = getattr(self, self.get_op())()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 366, in op_sync
>     pname = self._load_profile()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 590, in 
> _load_profile
>     self._login()
>   File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 85, in _login
>     coll.login()
>   File "/home/wilk/info/emacs/ASynK/asynk/state_collection.py", line 336, in 
> login
>     self.get_username(), self.get_pwd())
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 71, in __init__
>     self.gc_init()
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 279, in gc_init
>     self.credentials = self._oauth_dance(storage)
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 266, in 
> _oauth_dance
>     http = self.credentials.authorize(http=self._new_http())
>   File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 244, in _new_http
>     debug = self.get_config().get_gc_logging()
>   File "/home/wilk/info/emacs/ASynK/asynk/state.py", line 355, in 
> get_gc_logging
>     return self.get_db_config('gc')['log']
> KeyError: 'log'


Any idea what's going wrong ?

Julien.

-- 
You received this message because you are subscribed to the Google Groups 
"ASynK Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/asynk/871tdp4ldx.fsf%40free.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to