错误:频道已结束,将不会有回复

时间:2015-09-25 04:58:11

标签: javascript node.js meteor rabbitmq

我试图在流星应用程序中使用iscally(npm)并且我已经设置并运行它。但是,我尝试使用require 'benchmark/ips' str = "/server/ab/file.html" Benchmark.ips do |b| b.report("split") do a = str.sub(/^\//, '').split('/') a[0...-1].each {|s| s << '/'; s.insert(0 , '/')} end b.report("updated split") do a = str[1..-1].split('/') a[0...-1].each {|s| s << '/'; s.insert(0 , '/')} end b.report("scan") do str.scan(/(?<=\/)([\w.]+)(\/)?/).map { |(val,slash)| slash ? "/#{val}/" : val } end b.report("gsub") do str.gsub(/(?<=\/)([\w.]+)(\/)?/).map { |m| "#{$2 && '/'}#{m}" } end b.report("mudasobwa's varient") do a = str[1..-1].split('/') [*a[0..-2].map { |e| "/#{e}/"}, a[-1]] end b.report("mudasobwa's tap concept") do a = str[1..-1].split('/') a << (a.pop.tap { a.map! {|s| "/#{s}/" } }) end end; nil # results: # # Calculating ------------------------------------- # split 39.378k i/100ms # updated split 45.530k i/100ms # scan 23.910k i/100ms # gsub 18.006k i/100ms # mudasobwa's varient 47.389k i/100ms # mudasobwa's tap concept # 51.895k i/100ms # ------------------------------------------------- # split 517.487k (± 2.9%) i/s - 2.599M # updated split 653.271k (± 6.4%) i/s - 3.278M # scan 268.048k (± 6.9%) i/s - 1.339M # gsub 202.457k (± 3.2%) i/s - 1.026M # mudasobwa's varient 656.734k (± 4.8%) i/s - 3.317M # mudasobwa's tap concept # 761.914k (± 3.2%) i/s - 3.840M 函数和链request()语句来处理响应。

我收到一个我似乎无法弄清楚的错误,因为我甚至没有看到一条消息进入我的队列。

我已经通过cloneamqp.com设置了rabbitmq,所以我很确定它不是真正的兔子装置搞砸了......它与我有关系

这是我的堆栈跟踪

then()

我使用meteor 1.2.0.1,rabbitmq 3.5.4,从npm开始是0.2.7

我甚至不知道从哪里开始犯这个错误。

1 个答案:

答案 0 :(得分:0)

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是绑定到交换的队列,而不是交换本身。不确定它是库问题还是错误的错误消息。