From dbf4ff01329290b4e475e2a31951f5ea4e705913 Mon Sep 17 00:00:00 2001 From: geethkokila Date: Thu, 15 Mar 2018 01:28:05 +0530 Subject: [PATCH] Add a temporary fix for api subscription issue --- .../extension/APIManagementProviderServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java b/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java index 487177ed61..525fb845eb 100644 --- a/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java +++ b/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension/src/main/java/org/wso2/carbon/apimgt/application/extension/APIManagementProviderServiceImpl.java @@ -155,7 +155,12 @@ public class APIManagementProviderServiceImpl implements APIManagementProviderSe } } if (!needToSubscribe.isEmpty()) { - storeClient.getSubscriptionMultitpleApi().subscriptionsMultiplePost(needToSubscribe, CONTENT_TYPE); + // TODO: Fix this properly + try { + storeClient.getSubscriptionMultitpleApi().subscriptionsMultiplePost(needToSubscribe, CONTENT_TYPE); + } catch (Exception e){ + log.warn("Please check the API subscriptions."); + } } //end of subscription