postwait/node-amqp — Issue #68: cannot get queue from non default virtual host
Author: ronnyg21
Created: 2012-02-09 16:05:59+00:00
State: open

using 0.1.1

I've created virtual host "dev" on my rabbit instance. I cannot connect to queue for anything other than default "/" virtual host. I do not get an error if I connect to any queue on "/" vhost.

```javascript
var queueName = "devqueue";
var connection = amqp.createConnection({'host': 'localhost', 'port': 5672, 'vhost' : 'dev'});

connection.on('ready', function() {
var args = {'exclusive': false, 'autoDelete': false, 'durable' : true};
var q = connection.queue(queueName , args);
q.bind('#');
});
```

yields the error

```javascript

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: INTERNAL_ERROR
at Connection._onMethod (/opt/apps/amqp/scripts/node_modules/amqp/amqp.js:995:15)
at AMQPParser.onMethod (/opt/apps/amqp/scripts/node_modules/amqp/amqp.js:811:12)
at AMQPParser._parseMethodFrame (/opt/apps/amqp/scripts/node_modules/amqp/amqp.js:456:10)
at AMQPParser.execute (/opt/apps/amqp/scripts/node_modules/amqp/amqp.js:206:20)
at Connection. (/opt/apps/amqp/scripts/node_modules/amqp/amqp.js:851:12)
at Connection.emit (events.js:67:17)
at TCP.onread (net.js:329:14)
```