Skip to content

Cannot send amq.topic message from Unity 2020 #18

Description

@dyhmichail

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)


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions