EasyNetQ.Management.Client icon indicating copy to clipboard operation
EasyNetQ.Management.Client copied to clipboard

Creating a VHOST doesn't check for the correct status codes (201=Created)

Open zidad opened this issue 8 years ago • 1 comments

Status 201-Created should not throw an exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> EasyNetQ.Management.Client.UnexpectedHttpStatusCodeException: Unexpected Status Code: 201 Created at EasyNetQ.Management.Client.ManagementClient.Put(String path) at EasyNetQ.Management.Client.ManagementClient.CreateVirtualHost(String virtualHostName) at AerData.Bus.Host.Tasks.RabbitMqRecreateVHost.Run(RabbitMqConnectionSettings options, CancellationToken token)

zidad avatar Oct 24 '17 13:10 zidad

Please check if it stills happens and provide further details with links to the source code points where it fails.

luigiberrettini avatar May 30 '18 00:05 luigiberrettini

Not relevant anymore.

https://github.com/EasyNetQ/EasyNetQ.Management.Client/blob/master/Source/EasyNetQ.Management.Client/ManagementClient.cs#L691

Pliner avatar Dec 11 '22 21:12 Pliner