From commits-return-3789-archive-asf-public=cust-asf.ponee.io@openwhisk.apache.org Tue Mar 6 04:59:44 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 774E0180676 for ; Tue, 6 Mar 2018 04:59:43 +0100 (CET) Received: (qmail 39253 invoked by uid 500); 6 Mar 2018 03:59:42 -0000 Mailing-List: contact commits-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list commits@openwhisk.apache.org Received: (qmail 39238 invoked by uid 99); 6 Mar 2018 03:59:42 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2018 03:59:42 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id E20AC80604; Tue, 6 Mar 2018 03:59:41 +0000 (UTC) Date: Tue, 06 Mar 2018 03:59:41 +0000 To: "commits@openwhisk.apache.org" Subject: [incubator-openwhisk-package-kafka] branch master updated: fail to create feed trigger on explicit 403 (#257) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152030878187.5477.11606169398940493595@gitbox.apache.org> From: dubeejw@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-openwhisk-package-kafka X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 27777f856158626a8a954282e9a795e8f6adfd2c X-Git-Newrev: 169e2feb14747aeb2140fc1b9772b6af82f448e0 X-Git-Rev: 169e2feb14747aeb2140fc1b9772b6af82f448e0 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. dubeejw pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-kafka.git The following commit(s) were added to refs/heads/master by this push: new 169e2fe fail to create feed trigger on explicit 403 (#257) 169e2fe is described below commit 169e2feb14747aeb2140fc1b9772b6af82f448e0 Author: Adnan Baruni AuthorDate: Mon Mar 5 21:59:40 2018 -0600 fail to create feed trigger on explicit 403 (#257) --- action/messageHubFeedWeb.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/action/messageHubFeedWeb.js b/action/messageHubFeedWeb.js index d22507d..0ad270b 100644 --- a/action/messageHubFeedWeb.js +++ b/action/messageHubFeedWeb.js @@ -234,9 +234,12 @@ function checkMessageHubCredentials(params) { if (topicNames.indexOf(params.topic) < 0) { return Promise.reject( 'Topic does not exist. You must create the topic first: ' + params.topic ); } - }, function (authError) { - console.log(`authError: ${JSON.stringify(authError)}`); - return Promise.reject( 'Could not authenticate with Message Hub. Please check your credentials.' ); + }, function (err) { + console.log(`Error: ${JSON.stringify(err)}`); + + if (err.statusCode === 403) { + return Promise.reject( 'Could not authenticate with Message Hub. Please check your credentials.' ); + } }); } -- To stop receiving notification emails like this one, please contact dubeejw@apache.org.