You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by du...@apache.org on 2018/03/06 03:59:41 UTC

[incubator-openwhisk-package-kafka] branch master updated: fail to create feed trigger on explicit 403 (#257)

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 <ab...@users.noreply.github.com>
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.