It can receive message after running. But error's shown after 3 seconds:
Error: Unmatched field {"name":"consumerTag","domain":"shortstr"}
at serializeFields (/home/lixin/test/rabbitmq/node_modules/amqp/amqp.js:781:17)
at Connection._sendMethod (/home/lixin/test/rabbitmq/node_modules/amqp/amqp.js:1236:3)
at Object.cb (/home/lixin/test/rabbitmq/node_modules/amqp/amqp.js:1648:21)
at Queue.Channel._tasksFlush (/home/lixin/test/rabbitmq/node_modules/amqp/amqp.js:1540:10)
at Queue.Channel._taskPush (/home/lixin/test/rabbitmq/node_modules/amqp/amqp.js:1530:8)
at Queue.unsubscribe (/home/lixin/test/rabbitmq/node_modules/amqp/amqp.js:1647:15)
at null._onTimeout (/home/lixin/test/rabbitmq/index.js:20:9)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
This is my code:
It can receive message after running. But error's shown after 3 seconds:
Helppppppppp!