-
Notifications
You must be signed in to change notification settings - Fork 118
ManagementClient CreateQueueAsync and CreateTopicAsync throw FormatException instead of MessagingEntityAlreadyExistsException #516
Comments
The issue was due to RetryPolicy. Your method must have run into some issue and retryPolicy kicked in which is trying to re send the same message. Fixed it in the latest commit.
|
Its fixed in #481 |
Should the default retry policy be set to None if request is cloned? Sounds like that was the root problem. |
I was planning to remove retry policy completely instead. |
Then 👍 to remove it. |
I'm going to leave default as |
Shells like "what if" 🙂
Would say it's better to leave the retries to that person rather than bake
it into the client that could cause issues.
|
Done.. Removed RetryPolicy |
👍 |
Repro:
Expected exception:
MessagingEntityAlreadyExistsException
Actual exception:
FormatException
, "Cannot add value because header 'Authorization' does not support multiple values."Stacktrace
at System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(String name, HeaderStoreItemInfo info, String value) at Microsoft.Azure.ServiceBus.Management.ManagementClient.d__42.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.ServiceBus.Management.ManagementClient.<>c__DisplayClass37_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.ServiceBus.RetryPolicy.d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Azure.ServiceBus.RetryPolicy.d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.Azure.ServiceBus.Management.ManagementClient.d__37.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.ServiceBus.Management.ManagementClient.d__29.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at UserQuery.d__0.MoveNext()
The text was updated successfully, but these errors were encountered: