我正在尝试在流星应用程序中使用 wascally (npm),并且我已经设置并运行了它。但是,我正在尝试使用
request()
函数和链式 then()
语句来处理响应。
我收到了一个我似乎无法弄清楚的错误,因为我什至没有看到消息进入我的队列。
我已经通过cloneamqp.com设置了rabbitmq,所以我很确定这不是真正的rabbitmq安装搞砸了......这与我有关。
这是我的堆栈跟踪
W20150925-00:14:05.787(-4)? (STDERR) throw e;
W20150925-00:14:05.787(-4)? (STDERR) ^
W20150925-00:14:05.789(-4)? (STDERR) Error: Channel ended, no reply will be forthcoming
W20150925-00:14:05.789(-4)? (STDERR) at rej (/Users/rkstar/dev/projects/wacoosta/.meteor/local/isopacks/npm-container/npm/node_modules/wascally/node_modules/amqplib/lib/channel.js:189:7)
W20150925-00:14:05.789(-4)? (STDERR) at Channel.C._rejectPending (/Users/rkstar/dev/projects/wacoosta/.meteor/local/isopacks/npm-container/npm/node_modules/wascally/node_modules/amqplib/lib/channel.js:195:42)
W20150925-00:14:05.789(-4)? (STDERR) at Channel.C.toClosed (/Users/rkstar/dev/projects/wacoosta/.meteor/local/isopacks/npm-container/npm/node_modules/wascally/node_modules/amqplib/lib/channel.js:159:8)
W20150925-00:14:05.789(-4)? (STDERR) at Channel.C.accept (/Users/rkstar/dev/projects/wacoosta/.meteor/local/isopacks/npm-container/npm/node_modules/wascally/node_modules/amqplib/lib/channel.js:405:10)
W20150925-00:14:05.789(-4)? (STDERR) at Connection.mainAccept [as accept] (/Users/rkstar/dev/projects/wacoosta/.meteor/local/isopacks/npm-container/npm/node_modules/wascally/node_modules/amqplib/lib/connection.js:62:33)
W20150925-00:14:05.789(-4)? (STDERR) at Socket.go (/Users/rkstar/dev/projects/wacoosta/.meteor/local/isopacks/npm-container/npm/node_modules/wascally/node_modules/amqplib/lib/connection.js:465:48)
W20150925-00:14:05.789(-4)? (STDERR) at Socket.emit (events.js:92:17)
W20150925-00:14:05.790(-4)? (STDERR) at emitReadable_ (_stream_readable.js:427:10)
W20150925-00:14:05.790(-4)? (STDERR) at emitReadable (_stream_readable.js:423:5)
W20150925-00:14:05.790(-4)? (STDERR) at readableAddChunk (_stream_readable.js:166:9)
我正在使用 npm 的meteor 1.2.0.1、rabbitmq 3.5.4 和 wascally 0.2.7
我什至不知道从哪里开始这个错误。
ExchangeBind 问题在这里得到解答: 操作失败:ExchangeBind; 404(未找到),消息为“NOT_FOUND - 没有交换‘dead.letters-q.1’
原来我试图配置
wascally
两次。现在我遇到了不同的错误!
Error: Operation failed: ExchangeBind; 404 (NOT-FOUND) with message "NOT_FOUND - no exchange 'dead.letters-q.1' in vhost 'jzywgjfv'"
这很奇怪,因为
dead.letters-q.1
是绑定到交换器的队列,而不是交换器本身。不确定这是库问题还是只是错误消息。