apim-cli icon indicating copy to clipboard operation
apim-cli copied to clipboard

What changed between 1.14.2 to .3 and .4? API import is not working anymore.

Open jonatiao opened this issue 1 year ago • 0 comments

APIM-CLI version

1.14.3 1.14.4

API-Management version

7.7.20220228

Bug description

We have been working for a long period with 1.14.2. Currently I have been asked to update the cli to the latest version. After the update, the cli stops in the following message:

2024-04-17 16:50:26,549 [APISpecificationFactory] INFO : Reading API-Definition (Swagger/WSDL) from file: swagger.json (relative path)
2024-04-17 16:50:26,572 [APIManagerAdapter] DEBUG: Closing cache ...

Full log in TRACE:

2024-04-17 16:50:24,083 [APIManagerCLI] INFO : API-Manager CLI: 1.14.4
2024-04-17 16:50:24,088 [APIManagerCLI] INFO : Module: API - I M P O R T  (1.14.4)
2024-04-17 16:50:24,103 [EnvironmentProperties] DEBUG: Trying to load environment properties from file: /home/user/apim-cli-1.14.4/conf/env.properties ... not found.
2024-04-17 16:50:24,104 [EnvironmentProperties] DEBUG: Trying to load environment properties from file: /home/user/apim-cli-1.14.4/conf/env.PRD.properties ... not found.
2024-04-17 16:50:25,000 [APIMHttpClient] DEBUG: API Manager CLI http client timeout : 30000
2024-04-17 16:50:25,134 [RestAPICall] DEBUG: Http verb:POST and URI: https://my-apimgr:443/api/portal/v1.4/login
2024-04-17 16:50:25,761 [RestAPICall] DEBUG: Http verb:GET and URI: https://my-apimgr:443/api/portal/v1.4/currentuser
2024-04-17 16:50:25,977 [APIManagerOrganizationAdapter] WARN : Using OrgAdmin only to load all organizations.
2024-04-17 16:50:25,978 [APIManagerOrganizationAdapter] DEBUG: Load organizations from API-Manager using filter: OrgFilter [name=null, id=931bbe35-d032-442c-a072-f03182d3a8c]
2024-04-17 16:50:25,978 [APIManagerOrganizationAdapter] DEBUG: Load organization with URI: https://my-apimgr:443/api/portal/v1.4/organizations/931bbe35-d032-442c-a072-af03182d3a8c
2024-04-17 16:50:25,978 [RestAPICall] DEBUG: Http verb:GET and URI: https://my-apimgr:443/api/portal/v1.4/organizations/931bbe35-d032-442c-a072-af03182d3a8c
2024-04-17 16:50:26,046 [APIManagerOrganizationAdapter] DEBUG: Organization id to be cached : /931bbe35-d032-442c-a072-af03182d3a8c
2024-04-17 16:50:26,074 [RestAPICall] DEBUG: Http verb:GET and URI: https://my-apimgr:443/api/portal/v1.4/config
2024-04-17 16:50:26,231 [APIManagerAdapter] INFO : Successfully connected to API-Manager (7.7.20220228) on: https://my-apimgr:443
2024-04-17 16:50:26,235 [Utils] DEBUG: No stage provided
2024-04-17 16:50:26,265 [Utils] DEBUG: Handling JSON Configuration file: api-config.json
2024-04-17 16:50:26,431 [APIManagerOrganizationAdapter] DEBUG: Load organizations from API-Manager using filter: OrgFilter [name=Esteira Leap Recarga, id=null]
2024-04-17 16:50:26,432 [APIManagerOrganizationAdapter] DEBUG: Load organization with URI: https://my-apimgr:443/api/portal/v1.4/organizations?field=name&op=eq&value=my+org
2024-04-17 16:50:26,432 [RestAPICall] DEBUG: Http verb:GET and URI: https://my-apimgr:443/api/portal/v1.4/organizations?ield=name&op=eq&value=my+org
2024-04-17 16:50:26,549 [APISpecificationFactory] INFO : Reading API-Definition (Swagger/WSDL) from file: swagger.json (relative path)
2024-04-17 16:50:26,572 [APIManagerAdapter] DEBUG: Closing cache ...
2024-04-17 16:50:26,573 [RestAPICall] DEBUG: Http verb:DELETE and URI: https://my-apimgr:443/api/portal/v1.4/login

The error code is "99". If I get back to 1.14.2, everything works fine. I mean, after the message "Reading API-Definition (Swagger/WSDL) from file: swagger.json (relative path)", part of the openapi file is shown and the api is deployed.

Steps to reproduce

I just updated the version from 1.14.2 to .3 and .4.

Relevant log output

No response

There's any logging I could increase to get more info on that?

thx!

jonatiao avatar Apr 17 '24 20:04 jonatiao