我正在使用来自RabbitMQ的消息,然后想要使用raix-push插件向APNS / GSM发送推送通知。我将RabbitMQ与Meteor集成,但是当我尝试查询用户的记录时,他们的_id(raix-push需要),它会给出这个例外:
From MAILER-DAEMON Wed Sep 30 19:05:59 2015
Return-Path: <>
X-Original-To: root@mydomain.com
Delivered-To: root@mydomain.com
Received: by mydomain.com (Postfix)
id 5D29F1249E9; Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
Date: Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
From: MAILER-DAEMON@mydomain.com (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: root@mydomain.com
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="52BC21249E1.1443654359/mydomain.com"
Message-Id: <20150930230559.5D29F1249E9@mydomain.com>
This is a MIME-encapsulated message.
--52BC21249E1.1443654359/mydomain.com
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii
This is the mail system at host mydomain.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<info@mydomain.com>: unknown user: "info"
--52BC21249E1.1443654359/mydomain.com
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; mydomain.com
X-Postfix-Queue-ID: 52BC21249E1
X-Postfix-Sender: rfc822; root@mydomain.com
Arrival-Date: Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
Final-Recipient: rfc822; info@mydomain.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "info"
--52BC21249E1.1443654359/mydomain.com
Content-Description: Undelivered Message
Content-Type: message/rfc822
Return-Path: <root@mydomain.com>
Received: by mydomain.com (Postfix, from userid 0)
id 52BC21249E1; Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
Subject: This is the subject line
To: <info@mydomain.com>
X-Mailer: mail (GNU Mailutils 2.99.98)
Message-Id: <20150930230559.52BC21249E1@mydomain.com>
Date: Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
From: root@mydomain.com (root)
This is the body of the email
--52BC21249E1.1443654359/mydomain.com--
我尝试了很多不同的东西,例如使用W20150930-16:03:53.929(-7)? (STDERR) Error: [Error: Can't wait without a fiber]
W20150930-16:03:53.929(-7)? (STDERR) at Connection.<anonymous> (packages/jakobloekke_rabbitmq/packages/jakobloekke_rabbitmq.js:20:1)
W20150930-16:03:53.929(-7)? (STDERR) at Connection.emit (events.js:117:20)
W20150930-16:03:53.929(-7)? (STDERR) at Connection.<anonymous> (/Users/lsacco/.meteor/packages/jakobloekke_rabbitmq/.0.0.2.1lqodho++os+web.browser+web.cordova/npm/node_modules/amqp/lib/connection.js:176:14)
W20150930-16:03:53.930(-7)? (STDERR) at Connection.emit (events.js:95:17)
W20150930-16:03:53.930(-7)? (STDERR) at CleartextStream.emit (events.js:95:17)
W20150930-16:03:53.933(-7)? (STDERR) at CleartextStream.<anonymous> (_stream_readable.js:765:14)
W20150930-16:03:53.933(-7)? (STDERR) at CleartextStream.emit (events.js:92:17)
W20150930-16:03:53.933(-7)? (STDERR) at emitReadable_ (_stream_readable.js:427:10)
W20150930-16:03:53.933(-7)? (STDERR) at _stream_readable.js:420:7
W20150930-16:03:53.933(-7)? (STDERR) at process._tickCallback (node.js:448:13)
包裹光纤和提到here的方法。知道我在这里缺少什么吗?
Meteor.bindEnivornment
答案 0 :(得分:1)
我必须将Meteor.bindEnvironment()
添加到所有三个回调(连接就绪,连接队列和队列订阅)才能使用。我没想到,因为我认为如果顶级功能有它,我会没事的。