Skip to content
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

Refresh credentials to check validity #487

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

baxen
Copy link
Contributor

@baxen baxen commented Aug 8, 2022

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

@martindurant
Copy link
Member

Apparently this is not how to call refresh?

>           self.credentials.refresh()
E           TypeError: refresh() missing 1 required positional argument: 'request'

@martindurant
Copy link
Member

ping

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
@martindurant
Copy link
Member

Can someone with a GCP instance to hand please check this?

@martindurant
Copy link
Member

OK, I am convinced - this is going in. Thanks @baxen

@martindurant martindurant merged commit c186d37 into fsspec:main Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants