gcsfs icon indicating copy to clipboard operation
gcsfs copied to clipboard

Does this library use the `GOOGLE_APPLICATION_CREDENTIALS` env var?

Open davidxia opened this issue 3 years ago • 0 comments

Does this library use the GOOGLE_APPLICATION_CREDENTIALS env var? I set that value to the path of my application_default_credentials.json and have GCSFileSystem(project=MY_PROJECT), but I get the error gcsfs.retry.HttpError: Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object., 401.

GCSFileSystem(project=MY_PROJECT, token=os.getenv("GOOGLE_APPLICATION_CREDENTIALS")) works which makes me suspect this library doesn't respect GOOGLE_APPLICATION_CREDENTIALS.

I'm using the latest gcsfs 2022.8.2.

davidxia avatar Sep 29 '22 01:09 davidxia