[rabbitmq-discuss] rabbitmqadmin syntax for parameters

Simon MacMullen simon at rabbitmq.com
Wed Jan 29 21:00:24 GMT 2014


On 29/01/2014 19:35, Prabodh Upreti wrote:
> rabbitmqadmin -c rabbitmqadmin.conf -N host_normal declare queue name="AAA"
> durable=true 'arguments={"x-message-ttl":"86400000"}'

> *** 406 PRECONDITION_FAILED - invalid arg 'x-message-ttl' for queue 'AAA' in
> vhost '/': {unacceptable_type,longstr}

You want

$ rabbitmqadmin -c rabbitmqadmin.conf -N host_normal declare queue 
name="AAA" durable=true 'arguments={"x-message-ttl":86400000}'

since 86400000 is not a string.

Cheers, Simon


More information about the rabbitmq-discuss mailing list