-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_connect_cloud regression in 2022.7.1 - Invalid gcloud credentials #486
Comments
I'm not sure exactly where the check would go, but if you put it in a PR, then we have something concrete to talk about.. |
The original call to credentials.valid does not work until the credential has been refreshed once, as discussed in fsspec#486. This instead checks if the credential will work by trying to connect
Added a quick PR to show what I mean - this wouldn't move when the check happens but instead use a refresh to do the check. I don't see any way in the google |
Do you think you'll have a chance to work further on that PR and get it passing? |
The original call to credentials.valid does not work until the credential has been refreshed once, as discussed in fsspec#486. This instead checks if the credential will work by trying to connect
Updated the PR - sorry for the delay! I think this will fix the issue we are seeing, but I am not sure if it will have side effects (e.g. i see some additional complexity when the same |
The original call to credentials.valid does not work until the credential has been refreshed once, as discussed in #486. This instead checks if the credential will work by trying to connect
Our workflows using gcsfs==2022.7.1 are seeing a new error connecting from google cloud environments
I am pretty sure this was introduced in 42aa3dd
Reading through the google auth library, the
valid
method is first checking ifself.token
is None.self.token
is always initialized to None, and as far as I can tell is only updated after calling.refresh
. So I believe this check will always fail, despite this running in an environment where these credentials would be valid.I could open a PR, this would probably be fixed by running a
.refresh
just before the check, if it is appropriate to run a blocking connection check at this time in the flow.The text was updated successfully, but these errors were encountered: