Azure-Samples / Azure-Samples/storage-dotnet-rest-api-with-auth

PUT-Request for creating container lead to System.NullReferenceException

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
31
Forks
35
PR merge metrics
No merged PRs in 30d

Description

Http PUT Requests lead to a NullReferenceException in Function AzureStorageAuthenticationHelper.GetAuthorizationHeader in Line 40 because the program tries to get the content length of the httpRequest which sometimes may not be set and therefor is null.

For example when trying to create a container the necessary parameters are passed via URL-Parameter.

![image](https://github.com/Azure-Samples/storage-dotnet-rest-api-with-auth/assets/5089965/5dd3051a-8b14-4b8d-91d5-ad66a72df77e)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.