wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
846 stars 785 forks source link

Unable to publish to external stores. #10150

Closed chanaka3d closed 3 years ago

chanaka3d commented 3 years ago

Description:

Followed the following doc to publish to an external store. https://apim.docs.wso2.com/en/latest/learn/design-api/publish-api/publish-to-multiple-external-api-stores/#publish-to-multiple-external-developer-portals

Steps to reproduce:

Get two instances of APIM ( instance1, instance2 ) Make instance 2 port offset to 1. Change instance 1 /_system/governance/apimgt/externalstores/external-api-stores.xml to the following.

<ExternalAPIStores>
    <StoreURL>http://localhost:9443/devportal</StoreURL>
        <ExternalAPIStore id="DeveloperPortal2" type="wso2" className="org.wso2.carbon.apimgt.impl.publishers.WSO2APIPublisher">
            <DisplayName>DeveloperPortal2</DisplayName>
            <Endpoint>http://localhost:9444/devportal</Endpoint>
            <Username>admin</Username>
            <Password>admin</Password>
        </ExternalAPIStore>
</ExternalAPIStores>

Go to instance 1 publisher portal and try to publish to the DeveloperPOrtal2.

Screen Shot 2021-03-05 at 12 08 16 PM Screen Shot 2021-03-05 at 12 10 51 PM
malinthaprasan commented 3 years ago
http://localhost:9444/devportal needs to be pointed to **https**
chanaka3d commented 3 years ago

Did the change in the registry config.

The configuration change is visible in the publisher.

Screen Shot 2021-03-23 at 5 09 33 PM

Following error printed in the terminal when the save button pressed.

[2021-03-23 17:07:04,441] ERROR - WSO2APIPublisher Import API service call received unsuccessful response:  status: 404
[2021-03-23 17:07:04,442] ERROR - APIProviderImpl org.wso2.carbon.apimgt.api.APIManagementException: Import API service call received unsuccessful response:  status: 404
[2021-03-23 17:07:04,443] ERROR - GlobalThrowableMapper org.wso2.carbon.apimgt.api.APIManagementException: Failed to publish API to external Store.