Hello everyone,
I am trying to use QPID-proton-cpp AMQP 1.0 client library
https://qpid.apache.org/releases/qpid-proton-0.37.0/proton/cpp/api/index.html to connect to rabbitmq stream. I am having issue cause I keep get a inequivalent error.
amqp:precondition-failed: PRECONDITION_FAILED - inequivalent arg 'x-queue-type' for queue 'stream-test' in vhost '/': received none but current is the value 'stream' of type 'longstr'
I have been trying to provide this information to rabbitMQ with so many different approaches but none of them work. Do you have any clue?
Thanks a lot!
Tony
This is the log information
2022-06-23 13:40:58.168806-06:00 [info] <0.21847.4> accepting AMQP connection <0.21847.4> (127.0.0.1:38860 -> 127.0.0.1:5672)
2022-06-23 13:40:58.176029-06:00 [error] <0.21876.4> Channel error on connection <0.21856.4> (127.0.0.1:38860 -> 127.0.0.1:5672, vhost: '/', user: 'guest'), channel 2:
2022-06-23 13:40:58.176029-06:00 [error] <0.21876.4> operation queue.declare caused a channel exception precondition_failed: inequivalent arg 'x-queue-type' for queue 'stream-test2' in vhost '/': received none but current is the value 'stream' of type 'longstr'
2022-06-23 13:40:58.176403-06:00 [warning] <0.21853.4> Closing session for connection <0.21847.4>:
2022-06-23 13:40:58.176403-06:00 [warning] <0.21853.4> {'v1_0.error',{symbol,<<"amqp:precondition-failed">>},
2022-06-23 13:40:58.176403-06:00 [warning] <0.21853.4> {utf8,<<"PRECONDITION_FAILED - inequivalent arg 'x-queue-type' for queue 'stream-test2' in vhost '/': received none but current is the value 'stream' of type 'longstr'">>},
2022-06-23 13:40:58.176403-06:00 [warning] <0.21853.4> undefined}
2022-06-23 13:40:58.177923-06:00 [warning] <0.21847.4> closing AMQP connection <0.21847.4> (127.0.0.1:38860 -> 127.0.0.1:5672):
2022-06-23 13:40:58.177923-06:00 [warning] <0.21847.4> client unexpectedly closed TCP connection
Tcp dump information is attached