postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.69k stars 358 forks source link

Error connecting to an exchange #435

Open random0000 opened 8 years ago

random0000 commented 8 years ago

Environment: I am using the bunyan-logstash-amqp plugin that uses the amqp plugin

In the node amqp exchange.js code there is a field called autodelete (note the ""). Later on in the code there is a check in serializer.js that compares the fields with args passed in. If the strict flag is true (which it is in this case in connection.js, line 847) then it tries to find autoDelete in args which only has auto_Delete in it. This is regardless of whether or not the field is specified in the exchange properties field. An error ends up being thrown in serializer.js, line 235 which causes the connection to fail.

If I change the strict flag to false on line 847, the connection works.

Any ideas? Thanks!