-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api import error with apps #521
Comments
What could be the origin of this error ? |
Can you update the CLI to the latest version and test it again? |
Here is the DEBUG trace with the latest CLI : 1.14.8 It happens once each 2 or 3 times : We have this problem since a few days. It happens only on our Qual environment. DEV is ok (one gateway server) - QUAL : 2 servers
|
API manager is returning an error when CLI tries to retrieve all applications associated with the API. |
Hi, I confirmed with another API deployment. This is something quiet new we can see. We did an upgrader in July of our Gateway version. It could be related, and maybe we did not have the case since the migration. thanks, Olivier |
Sure, keep me posted. Thanks |
APIM-CLI version
1.14.1
API-Management version
7.7.0
Bug description
When I execute import command in Azure devops pipeline :
Formatted command: exec bash '/home/tfs/axway-apim/apim-cli/scripts/apim.sh' - - api import - --apidefinition https://coreapi-addresses.qual.apps.sig-ge.ch/swagger/v1/swagger.json - --config ../DevopsTemplates/axway/api/rest-int-apikey-apikey/api-config.json - --host v966.sig-ge.ch - --username apiadmin - --password *** - -port 8075 - -overrideSpecBasePath - -clearCache ALL - -force - -ignoreCache - -clientAppsMode add
I get an error once every 3 or 4 times.
Error is :
2024-11-12 11:08:34,797 [APIImportApp] ERROR: Cannot read APIs from API-Manager
| Error cant load subscribes applications from API-Manager.
com.axway.apim.lib.error.AppException: Cannot read APIs from API-Manager
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.getAPIs(APIManagerAPIAdapter.java:99)
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.getAPI(APIManagerAPIAdapter.java:105)
at com.axway.apim.APIImportApp.importAPI(APIImportApp.java:93)
at com.axway.apim.APIImportApp.importAPI(APIImportApp.java:53)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at com.axway.apim.cli.APIManagerCLI.run(APIManagerCLI.java:133)
at com.axway.apim.cli.APIManagerCLI.main(APIManagerCLI.java:77)
Caused by: com.axway.apim.lib.error.AppException: Error cant load subscribes applications from API-Manager.
at com.axway.apim.adapter.client.apps.APIMgrAppsAdapter.getAppsSubscribedWithAPI(APIMgrAppsAdapter.java:161)
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.addClientApplications(APIManagerAPIAdapter.java:431)
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.getAPIs(APIManagerAPIAdapter.java:87)
Steps to reproduce
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: