I am suffering an error when I tried to send/publish the messages with AMQP in my C# code. Below is the error: {error(condition:amqp:not-implemented,description:sasl-mechanisms(sasl-server-mechanisms:[ANONYMOUS]))}
Below is the partial code, the Connect() method is an internal method which is responsible for creating a AMQP connection session and connecting to Solace.
The exception was thrown from this method.
BrokerQueue is the topic I plan to send message to.
public void Send(string text)
{
Connect();
var sender = new Amqp.SenderLink(session, BrokerQueue);
sender.Send(text);
}
It looks like something wrong related to SASL when connecting to the Solace host. I am using non-secure amqp static connection string like below.
amqp://default:default@:5673/
5673 is the port number that my host is exposing for AMQP protocol. I am sure my code works because when I changed it to connect to the Azure Service bus queue, it did work. Not sure how I can do to fix the issue, will be really appreciate if I get any clues, thanks!
Did you verify that ANONYMOUS mechanism is correct for your broker config? If you are using username/password then you likely need to use PLAIN. This is from the solace docs here: https://docs.solace.com/API/AMQP/Client-Support.htm