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

[BUG] CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode #45149

Closed
NirAvailo opened this issue Jul 23, 2024 · 2 comments
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@NirAvailo
Copy link

Library name and version

Azure.Storage.Blobs 12.21.0

Describe the bug

Got an exception when trying to upload a content into a blob

InvalidOperationException: Failed to compare two elements in the array. TypeInitializationException: The type initializer for 'Azure.Storage.StorageSharedKeyPipelinePolicy' threw an exception. CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')\nen-US is an invalid culture identifier.

I tried to resolve this problem by setting InvariantGlobalization to false in the project file, however, the AKS did not accept it.

Expected behavior

This error does not happen with Azure.Storage.Blobs version 12.20.0

Actual behavior

The service get an exception when uploading the content

Reproduction Steps

blob = new BlockBlobClient(connectionString, containerName, blobName);

NOTE:
relevant change is in sdk/storage/Azure.Storage.Common/src/Shared/StorageSharedKeyPipelinePolicy.cs in commit b99cccb

/sdk/storage/Azure.Storage.Common/src/Shared/StorageSharedKeyPipelinePolicy.cs

Environment

AKS Linux pod
dotNet6.0

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Jul 23, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

@github-actions github-actions bot added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) labels Jul 23, 2024
@seanmcc-msft
Copy link
Member

Duplicate of #45052

@seanmcc-msft seanmcc-msft marked this as a duplicate of #45052 Jul 24, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

2 participants