【问题标题】:Error: Channel ended, no reply will be forthcoming错误:频道已结束,不会有回复
【发布时间】:2015-09-25 04:58:11
【问题描述】:

我正在尝试在流星应用程序中使用 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 的流星 1.2.0.1、rabbitmq 3.5.4 和 wascally 0.2.7

我什至不知道从哪里开始出现这个错误。

【问题讨论】:

  • 你不能要求 npm 模块,如果你想这样做,你可以使用 https://atmospherejs.com/meteorhacks/npm 并做 var Github = Meteor.npmRequire('github'); 或者如果它是一个包,你可以在没有额外包的情况下做到这一点:@ 987654321@

标签: javascript node.js meteor rabbitmq


【解决方案1】:

此处回答了 ExchangeBind 问题:Operation failed: ExchangeBind; 404 (NOT-FOUND) with message "NOT_FOUND - no exchange '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 是绑定到交换的队列,而不是交换本身。不确定这是库问题还是只是错误的错误消息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-10-06
    • 1970-01-01
    • 2019-12-30
    • 2015-07-14
    • 1970-01-01
    • 2015-08-13
    • 1970-01-01
    • 2016-04-19
    相关资源
    最近更新 更多