openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dube...@apache.org
Subject [incubator-openwhisk-package-kafka] branch master updated: fail to create feed trigger on explicit 403 (#257)
Date Tue, 06 Mar 2018 03:59:41 GMT
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 <abaruni@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.

Mime
View raw message