francoislaurent / escale

Escale - Client-to-client synchronization based on external relay storage
Other
3 stars 2 forks source link

Failed to lsl: couldn't list directory: googleapi: Error 400: Bad Request, failedPrecondition #38

Open francoislaurent opened 2 years ago

francoislaurent commented 2 years ago

The below error made the client crash:

ERROR[escale.input]:rclone._list: unexpected rclone error for command lsl on relay dir 'input': 2022/02/04 15:44:49 Failed to lsl: couldn't list directory: googleapi: Error 400: Bad Request, failedPrecondition
CRITICAL[escale.input]:manager.run: Traceback (most recent call last):
  File "~/escale/escale/manager/manager.py", line 316, in run
    new |= self.download()
  File "~/escale/escale/manager/index.py", line 113, in download
    with self.relay.getUpdate(page, self.terminate, lookup_missing) as update:
  File "~/escale/escale/relay/index.py", line 145, in __enter__
    if not self.relay.loaded(self.page) or self.relay.hasUpdate(self.page) or self.full_index:
  File "~/escale/escale/relay/index.py", line 1004, in hasUpdate
    self.remoteListing()
  File "~/escale/escale/relay/index.py", line 504, in remoteListing
    self.base_relay.remoteListing()
  File "~/escale/escale/relay/relay.py", line 603, in remoteListing
    self.listing_cache = list(self._list('', recursive=True, stats=('mtime',)))
  File "~/escale/escale/relay/generic/rclone.py", line 123, in _list
    ls = with_subprocess(self.rclone_bin, cmd,
  File "~/escale/escale/base/subprocess.py", line 96, in with_subprocess
    raise fail_on_error(err)
OSError: 2022/02/04 15:44:49 Failed to lsl: couldn't list directory: googleapi: Error 400: Bad Request, failedPrecondition