question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] UnsupportedHttpVerb code returned with SendMessageAsync method of QueueClient

See original GitHub issue

Describe 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

  1. Create a QueueClient var queueServiceClient = new QueueServiceClient(options.ConnectionString); _queueClient = queueServiceClient.GetQueueClient(options.QueueName); 2.Try to send base64 encoded message string 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Asier-Villanuevacommented, Mar 4, 2020

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.

0reactions
Asier-Villanuevacommented, Mar 4, 2020

If it was working fine until a few hours ago, is there any chance someone changed the CORS rules of your storage account?

No, no changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The resource doesn't support specified Http Verb. ...
I was attempting to use POST, whereas PUT method was necessary. Working code: const url = `${baseURL}/${containerName}/${file.name}?
Read more >
QueueClient.SendMessageAsync Method (Azure.Storage. ...
Adds a new message to the back of a queue. The visibility timeout specifies how long the message should be invisible to Dequeue...
Read more >
Tutorial: Work with Azure Queue Storage queues in .NET
A tutorial on using the Azure Queue Storage to create queues, and insert, get, and delete messages using .NET code.
Read more >
Azure Data Lake Storage Connector | 405 The resource ...
Azure Data Lake Storage Connector Update Path fails with the below error : HTTP/1.1 405 The resource doesn't support specified Http Verb.
Read more >
Sending JSON with .NET Core QueueClient ...
SendMessageAsync (string) method. But this introduces a strange situation, when adding serialized JSON objects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found