我正在生产中的节点应用程序中使用 bluemix 消息中心服务。现在我们遇到了一个问题,即消息中心服务每天都出现故障,然后需要重新启动应用程序。这不能这样做。我们收到以下日志
2016-10-16T17:41:42.66+0100 [App/0] OUT Unable to consume topic: Error: Request returned
status code 404 but it was not in the accepted list. The REST API responded with the
following message: Consumer instance not found.
2016-10-16T17:41:46.66+0100 [App/0] OUT got error: { [Error: Request returned status code
404 but it was not in the accepted list. The REST API responded with the following message:
Consumer instance not found.] statusCode: 404, errorCode: 40403 }
有什么办法可以解决这个问题。这里失败了
run: function(callback) {
var that = this;
consumerInstance.get(topic)
.then(function(data) {
that.consume(data);
return callback();
})
.fail(function(error) {
console.log("got error: ", error);
return callback(error);
})
}
这是我们用作参考的代码
有关如何解决此问题的任何想法。谢谢,哈里什。