diff --git a/gcsfs/credentials.py b/gcsfs/credentials.py index a6e8d371..bbd9ea57 100644 --- a/gcsfs/credentials.py +++ b/gcsfs/credentials.py @@ -180,7 +180,8 @@ def maybe_refresh(self): return # repeat to avoid race (but don't want lock in common case) logger.debug("GCS refresh") self.credentials.refresh(req) - self.apply(self.heads) + # https://github.com/fsspec/filesystem_spec/issues/565 + self.credentials.apply(self.heads) def apply(self, out): """Insert credential headers in-place to a dictionary"""