Closed cpick closed 5 months ago
Currently Client::default() does not work. (It is planned to be removed.)
You need to set a valid token_source_provider in ClientConfig as shown in the following code.
let storage_config = google_cloud_storage::client::ClientConfig::default()
.with_auth()
.await?
let storage_client = google_cloud_storage::client::Client::new(storage_config);
I removed the google_cloud_storage::client::Client::default()
With google-cloud-storage 0.16.0 the following src/main.rs:
Panics with:
Which appears to be because
ClientConfig::default()
setstoken_source_provider: Some(Box::new(NopeTokenSourceProvider {})),
and thenClient::new()
callsconfig.token_source_provider.token_source()
which panics.Based on the code in
Client::new()
I believe it's expecting a TokenSourceProvider to be None in that situation instead?