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

Blob Service Example fails with XML parse error #1366

Closed
joverwey opened this issue Sep 8, 2023 · 2 comments · Fixed by #1383
Closed

Blob Service Example fails with XML parse error #1366

joverwey opened this issue Sep 8, 2023 · 2 comments · Fixed by #1383
Assignees

Comments

@joverwey
Copy link

joverwey commented Sep 8, 2023

I am trying to run the this example: services\svc\blobstorage\examples\list_containers.rs but I am getting an error:
page error: failed to deserialize the following xml into a azure_svc_blobstorage::package_2021_12::models::ListContainersSegmentResponse


<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https:///XXXX.blob.core.windows.net/">
    <Containers>
        <Container>
            <Name>azureml</Name>
            <Properties>
                <Last-Modified>Fri, 08 Sep 2023 16:36:39 GMT</Last-Modified>
                <Etag>"XXXX"</Etag>
                <LeaseStatus>unlocked</LeaseStatus>
                <LeaseState>available</LeaseState>
                <DefaultEncryptionScope>$account-encryption-key</DefaultEncryptionScope>
                <DenyEncryptionScopeOverride>false</DenyEncryptionScopeOverride>
                <HasImmutabilityPolicy>false</HasImmutabilityPolicy>
                <HasLegalHold>false</HasLegalHold>
                <ImmutableStorageWithVersioningEnabled>false</ImmutableStorageWithVersioningEnabled>
            </Properties>
        </Container>
        <Container>
            <Name>azureml-blobstore-XXXX</Name>
            <Properties>
                <Last-Modified>Fri, 08 Sep 2023 16:36:39 GMT</Last-Modified>
                <Etag>"XXXX"</Etag>
                <LeaseStatus>unlocked</LeaseStatus>
                <LeaseState>available</LeaseState>
                <DefaultEncryptionScope>$account-encryption-key</DefaultEncryptionScope>
                <DenyEncryptionScopeOverride>false</DenyEncryptionScopeOverride>
                <HasImmutabilityPolicy>false</HasImmutabilityPolicy>
                <HasLegalHold>false</HasLegalHold>
                <ImmutableStorageWithVersioningEnabled>false</ImmutableStorageWithVersioningEnabled>
            </Properties>
        </Container>
    </Containers>
    <NextMarker />
</EnumerationResults>

I know that I could use the blob storage API instead, but I am getting the same error using the filestorage generated API, which is actually what I am interested in since it does not have an SDK equivalent.

@demoray demoray self-assigned this Sep 14, 2023
@demoray
Copy link
Contributor

demoray commented Sep 14, 2023

I can replicate your issue. Investigating.

@demoray
Copy link
Contributor

demoray commented Sep 15, 2023

In order to fully fix the example, the fixes within #1381 and #1383 need to be merged and the crates regenerated.

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 a pull request may close this issue.

2 participants