metasync icon indicating copy to clipboard operation
metasync copied to clipboard

First push is causing infinite loop

Open sabativi opened this issue 9 years ago • 0 comments

So, thanks to version 0.2.2 I managed to get it connected with a dropbox and a google drive account. :clap:

I checkin a file which updated my two accounts, but when I tried to pushit caused an infinite loop :

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/metasync-0.2.2-py2.7.egg/metasync/paxos.py", line 89, in run
    func(*args, **kargs)
  File "/usr/local/lib/python2.7/site-packages/metasync-0.2.2-py2.7.egg/metasync/paxos.py", line 65, in send
    self.storage.append(self.path, msg)
  File "/usr/local/lib/python2.7/site-packages/metasync-0.2.2-py2.7.egg/metasync/google_api.py", line 589, in append
    self.post_comment(path, msg)
  File "/usr/local/lib/python2.7/site-packages/metasync-0.2.2-py2.7.egg/metasync/google_api.py", line 565, in post_comment
    file_id = metadata['id']
TypeError: 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/metasync-0.2.2-py2.7.egg/metasync/paxos.py", line 89, in run
    func(*args, **kargs)
  File "/usr/local/lib/python2.7/site-packages/metasync-0.2.2-py2.7.egg/metasync/paxos.py", line 59, in update
    logs, new_clock = self.storage.get_logs(self.path, self.clock)
  File "/usr/local/lib/python2.7/site-packages/metasync-0.2.2-py2.7.egg/metasync/google_api.py", line 594, in get_logs
    file_id = self._path_to_metadata(path)['id']
TypeError: 'NoneType' object has no attribute '__getitem__'

---- same message again after

sabativi avatar Aug 07 '15 07:08 sabativi