Open oleksandr-andrusenko opened 3 weeks ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Thank you for submitting this bug report. We have noted your issue and will investigate it. Should you encounter this problem again, please let us know.
Library name and version
Azure.Security.KeyVault.Keys 4.6.0
Describe the bug
When calling the
KeyClient.GetKeyAsync
method to retrieve a key from a key vault, the NullReferenceException is thrown. This happens rarely and doesn't seem to be deterministic.Stack trace:
Expected behavior
The
KeyClient.GetKeyAsync
should return the key if it exists.Actual behavior
The
KeyClient.GetKeyAsync
throws a NullRefereceExceptionReproduction Steps
We encountered the issue only once or twice in the last month in production, and unfortunately, I cannot/am not sure how to reproduce it. I tried to pass corrupted and null values as credentials or key name, but getting other errors that are expected. I assume the NullReferenceException happens internally in some edge cases that do not depend on the input parameters.
We initialize the client in the following way
And just call GetKeyAsync
Environment
AKS cluster: v1.30.4 Node image version: AKSUbuntu-2204gen2containerd-202409.23.0 Application base image: mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine