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

When calling get_bucket the API always returns an error #308

Closed
nhudson opened this issue Sep 8, 2024 · 2 comments
Closed

When calling get_bucket the API always returns an error #308

nhudson opened this issue Sep 8, 2024 · 2 comments

Comments

@nhudson
Copy link
Contributor

nhudson commented Sep 8, 2024

When calling the get_bucket method the GCP API returns an error. I spent some time attempting to track this down today and can't seem to find where in the GCP Storage API this would be coming from.

Error("unknown variant `AbortIncompleteMultipartUpload`, expected `Delete` or `SetStorageClass`", line: 20, column: 50)

This happens with this example code

        let config = ClientConfig::default().with_auth().await?;
        let client = Client::new(config);
        let bucket_name = "my-bucket-name".to_string();

        let bucket = client
            .get_bucket(&GetBucketRequest {
                bucket: bucket_name,
                ..Default::default()
            })
            .await?;

        println!("Bucket: {:?}", bucket);
@yoshidan
Copy link
Owner

yoshidan commented Sep 9, 2024

The reason is that the enum is old and AbortIncompleteMultipartUpload is undefined.
Will be added.

@nhudson
Copy link
Contributor Author

nhudson commented Sep 9, 2024

Thanks!!

@nhudson nhudson closed this as completed Sep 9, 2024
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

No branches or pull requests

2 participants