WSO2 APIM 3.2.0 | Unable to load APIs in developer portal
Hello guys, I'll be sharing my another experience in WSO2 API Manager for one of the use cases I faced issue.
Environment: WSO2 APIM 3.2.0, RHEL8.x
Problem: The developer portal is unable to load the list of APIs as default. Although, it can load the APIs if I filter out the APIs via tag. Below is the screenshot of the same-
Further I tried to investigate wso2carbon logs to see the error/exception and I found below relevant logs for the same-
================================================================================
ERROR - ApisApiServiceImpl Error while retrieving API : 07b6c6a7-eaa6-42be-a687-e04dd40a1ee6
org.wso2.carbon.apimgt.api.APIManagementException: Unable to find the API: admin-test001-1.0.0 in the database
at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.getAPIID_aroundBody310(ApiMgtDAO.java:7148) ~[org.wso2.carbon.apimgt.impl_6.7.206.168.jar:?]
at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.getAPIID(ApiMgtDAO.java:7117) ~[org.wso2.carbon.apimgt.impl_6.7.206.168.jar:?]
at org.wso2.carbon.apimgt.impl.utils.APIUtil.getAPIForPublishing_aroundBody10(APIUtil.java:652) ~[org.wso2.carbon.apimgt.impl_6.7.206.168.jar:?]
at org.wso2.carbon.apimgt.impl.utils.APIUtil.getAPIForPublishing(APIUtil.java:643) ~[org.wso2.carbon.apimgt.impl_6.7.206.168.jar:?]
================================================================================
Going forward, I checked the API test001 in publisher portal. The api was listed in the APIs but when I clicked on the same to see the details, it just keeps loading the screen and nothing happened as shown below-
Cause: The API test001 v1.0.0 has been somehow partially deleted or corrupted that caused partial search in developer portal and failed with exception "Unable to find the API: admin-test001-1.0.0 in the database" and the same way API details wasn't available in the publisher portal.
Solution: We need to remove all the metadata of the API and it needs to be created again. Follow the steps below to delete the metadata of the api test001.
- Login to the carbon console
- Navigate to Metadata section from left navigation panel and click on APIs.
- This will show the list of all APIs. Carefully see the api test001 and delete the same with confirmation popup.
- Now the API metadata has been successfully been deleted. Verify the same again in the APIs list here.
- Open the developer portal, it should now load all the APIs
Caution: Deleting the API metadata will delete all the details of the API. If required, please download the metadata from carbon console > metadata > apis > test001 > download
Great post. I was checking continuously this blog and I am impressed! Very useful info specifically the last part :) I care for such info much. I was looking for this certain information for a very long time. Thank you and best of luck
ReplyDeleteAre you looking for WhatsApp API Service Provider? Do you want to raise your customer’s support for your brand? Do you want your company to lead in the market of India? Do you need your business to grow faster and lead the position of your business in the market of India by using WhatsApp API Service Provider? then you are in the right place. Start today with India’s most trusted WhatsApp Business API Service Provider that provides you with great deals, better services, and opportunities that your business is seeking, to be successful.