rabbitmq / rabbitmq-objc-client

RabbitMQ client for Objective-C and Swift
https://rabbitmq.com
Other
241 stars 84 forks source link

Code=406 "PRECONDITION_FAILED - cannot redeclare exchange 'xxxx_exchang' in vhost 'xxxx' with different type, durable, internal or autodelete value" #119

Closed AlbertCamusSZB closed 7 years ago

AlbertCamusSZB commented 7 years ago

Error Domain=com.rabbitmq.rabbitmq-objc-client Code=406 "PRECONDITION_FAILED - cannot redeclare exchange 'xxxx_exchang' in vhost 'xxxx' with different type, durable, internal or autodelete value" UserInfo={NSLocalizedDescription=PRECONDITION_FAILED - cannot redeclare exchange 'xxxx_exchang' in vhost 'xxxx' with different type, durable, internal or autodelete value}

michaelklishin commented 7 years ago

Thank you for your time.

Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. This assumes we have a certain amount of information to work with.

We get at least a dozen of questions through various venues every single day, often quite light on details. At that rate GitHub issues can very quickly turn into a something impossible to navigate and make sense of even for our team. Because of that questions, investigations, root cause analysis, discussions for potential features are all considered to be mailing list material by our team. Please post this to rabbitmq-users.

Getting all the details necessary to make a conclusion or even form a hypothesis about what's happening can take a fair amount of time. Please help others help you by providing as much relevant information as possible on the list:

Feel free to edit out hostnames and other potentially sensitive information.

When/if we have enough details and evidence we'd be happy to file a new issue.

Thanks you.

michaelklishin commented 7 years ago

The message says it all: you cannot re-declare exchanges or queues with different properties. Either change the properties to match or delete the exchange and try again.

AlbertCamusSZB commented 7 years ago

Thank you very much for your advice, my problem has been solved, you are really good!