Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot send amq.topic message from Unity 2020 #18

Open
dyhmichail opened this issue Mar 15, 2021 · 1 comment
Open

Cannot send amq.topic message from Unity 2020 #18

dyhmichail opened this issue Mar 15, 2021 · 1 comment

Comments

@dyhmichail
Copy link

dyhmichail commented Mar 15, 2021

Hello, I load the demo and try to send messages to localhost.
Amq.direct works well, but when I try to subscribe to a topic get this error message.


RabbitMQ.Client.Exceptions.OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=406, text="PRECONDITION_FAILED - inequivalent arg 'type' for exchange 'amq.topic' in vhost '/': received 'direct' but current is 'topic'", classId=40, methodId=10, cause=
at RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply () [0x00042] in <76494203b95842789ec02507318bb340>:0
at RabbitMQ.Client.Impl.ModelBase.ModelRpc (RabbitMQ.Client.Impl.MethodBase method, RabbitMQ.Client.Impl.ContentHeaderBase header, System.Byte[] body) [0x00017] in <76494203b95842789ec02507318bb340>:0
at RabbitMQ.Client.Framing.Impl.Model._Private_ExchangeDeclare (System.String exchange, System.String type, System.Boolean passive, System.Boolean durable, System.Boolean autoDelete, System.Boolean internal, System.Boolean nowait, System.Collections.Generic.IDictionary2[TKey,TValue] arguments) [0x00057] in <76494203b95842789ec02507318bb340>:0 at RabbitMQ.Client.Impl.ModelBase.ExchangeDeclare (System.String exchange, System.String type, System.Boolean durable, System.Boolean autoDelete, System.Collections.Generic.IDictionary2[TKey,TValue] arguments) [0x00001] in <76494203b95842789ec02507318bb340>:0
at CymaticLabs.Unity3D.Amqp.RabbitMq.RabbitMqBrokerConnection.Subscribe (CymaticLabs.Unity3D.Amqp.AmqpExchangeSubscription subscription) [0x00180] in <61587bd89fd746c4ade238e08b151ed0>:0
UnityEngine.Debug:LogFormat (string,object[])
CymaticLabs.Unity3D.Amqp.AmqpClient:LogToConsole (string,object[]) (at Assets/CymaticLabs/Amqp/Scripts/AmqpClient.cs:1711)
CymaticLabs.Unity3D.Amqp.AmqpClient:Log (string,object[]) (at Assets/CymaticLabs/Amqp/Scripts/AmqpClient.cs:1699)
CymaticLabs.Unity3D.Amqp.AmqpClient:Update () (at Assets/CymaticLabs/Amqp/Scripts/AmqpClient.cs:510)


@danammeansbear
Copy link

can you show us some code so we can better help your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants