[BUG] UnsupportedHttpVerb code returned with SendMessageAsync method of QueueClient
See original GitHub issueDescribe the bug UnsupportedHttpVerb code returned with SendMessageAsync method of QueueClient The code has been working fine til few hours ago
Expected behavior Queue message creation
Actual behavior (include Exception or Stack Trace) An AzureRequestFailedException:
The resource doesn’t support specified Http Verb. RequestId:57b7f149-2003-0040-153f-f27920000000 Time:2020-03-04T16:10:26.7503611Z Status: 405 (The resource doesn’t support specified Http Verb.) ErrorCode: UnsupportedHttpVerb
Headers: Server: Microsoft-HTTPAPI/2.0 x-ms-request-id: 57b7f149-2003-0040-153f-f27920000000 x-ms-error-code: UnsupportedHttpVerb Date: Wed, 04 Mar 2020 16:10:26 GMT Allow: REDACTED Content-Length: 237 Content-Type: application/xml
StackTrace:
at Azure.Storage.Queues.QueueRestClient.Messages.EnqueueAsync_CreateResponse(ClientDiagnostics clientDiagnostics, Response response)
To Reproduce
- Create a QueueClient
var queueServiceClient = new QueueServiceClient(options.ConnectionString); _queueClient = queueServiceClient.GetQueueClient(options.QueueName);
2.Try to send base64 encoded messagestring json = JsonConvert.SerializeObject(message); var b64Message = Convert.ToBase64String(Encoding.UTF8.GetBytes(json)); SendReceipt sendReceipt = (await _queueClient.SendMessageAsync(b64Message));
Environment:
-
Name and version of the Library package used: Azure.Storage.Queues 12.2.0
-
Hosting platform or OS and .NET runtime version (
dotnet --info
output for .NET Core projects): client app is a .NET Core 2.2 Console Application Runtime Environment: OS Name: Windows OS Version: 10.0.18363 OS Platform: Windows RID: win10-x64 -
IDE and version : Microsoft Visual Studio 2019 Version 16.4.5
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Sorry, an error in my code. A change caused the parameter queueName to be null when creating the QueueClient
_queueClient = queueServiceClient.GetQueueClient(null);
Returned error has confused me.
Sorry and thanks for all.
No, no changes.