WSO2 API管理器2.6:apimcli导出API错误

WSO2 API管理器2.6:apimcli导出API错误,wso2,wso2-am,Wso2,Wso2 Am,尝试从本地安装(Windows 64位)导出API时遇到错误。我的机器上安装了WSO2 API Manager 2.6,没有修复程序 错误如下所示: *c:\apimcli-2.0.3-windows-x64\apimcli>: apimcli export-api -n weatheralerts -v v1.0 -r admin -e APIM-DEV -k Login to APIM-DEV Username:admin Password:apimcli: Error getting

尝试从本地安装(Windows 64位)导出API时遇到错误。我的机器上安装了WSO2 API Manager 2.6,没有修复程序

错误如下所示:

*c:\apimcli-2.0.3-windows-x64\apimcli>: apimcli export-api -n weatheralerts -v v1.0 -r admin -e APIM-DEV -k
Login to APIM-DEV
Username:admin
Password:apimcli: Error getting credentials Reason: The handle is invalid.
Exit status 1*
> *c:\apimcli-2.0.3-windows-x64\apimcli>apimcli login APIM-DEV -u admin -p admin -k --verbose Executed ImportExportCLI (apimcli) on Wed, 18 Mar 2020 01:50:30 CET [INFO]: Insecure: true Warning: Using --password
> in CLI is not secure. Use --password-stdin Getting ClientID,
> ClientSecret: Status - 403 Forbidden Error: %!s(<nil>) Body: <!--   ~
> Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights
> Reserved.   ~   ~ WSO2 Inc. licenses this file to you under the Apache
> License,   ~ Version 2.0 (the "License"); you may not use this file
> except   ~ in compliance with the License.   ~ You may obtain a copy
> of the License at   ~   ~ http://www.apache.org/licenses/LICENSE-2.0  
> ~   ~ Unless required by applicable law or agreed to in writing,   ~
> software distributed under the License is distributed on an   ~ "AS
> IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY   ~ KIND, either
> express or implied.  See the License for the   ~ specific language
> governing permissions and limitations   ~ under the License.   -->
> <html>
>     <head>
>         <title>Error 403</title>
>     </head>
>     <body>
>         <h1>Error 403 - Forbidden</h1>
>     </body> </html> Error occurred while login :  Request didn't respond 200 OK: 403 Forbidden*
   *config:   
        http_request_timeout: 10000
        export_directory: .wso2apimcli\exported 
    environments:   APIM-DEV:
    api_manager_endpoint: https://192.168.2.124:9443
    api_import_export_endpoint: https://192.168.2.124:9443/api-import-export-2.5.0-v1
    api_list_endpoint: https://192.168.2.124:9443/api/am/publisher/v0.12/apis
    application_list_endpoint: https://192.168.2.124:9443/api/am/store/v0.13/applications
    registration_endpoint: https://192.168.2.124:9443/client-registration/v0.13/register
    admin_endpoint: https://192.168.2.124:9443/api/am/admin/v0.13
    token_endpoint: https://192.168.2.124:8243/token*
我尝试登录并注意到此错误:

*c:\apimcli-2.0.3-windows-x64\apimcli>: apimcli export-api -n weatheralerts -v v1.0 -r admin -e APIM-DEV -k
Login to APIM-DEV
Username:admin
Password:apimcli: Error getting credentials Reason: The handle is invalid.
Exit status 1*
> *c:\apimcli-2.0.3-windows-x64\apimcli>apimcli login APIM-DEV -u admin -p admin -k --verbose Executed ImportExportCLI (apimcli) on Wed, 18 Mar 2020 01:50:30 CET [INFO]: Insecure: true Warning: Using --password
> in CLI is not secure. Use --password-stdin Getting ClientID,
> ClientSecret: Status - 403 Forbidden Error: %!s(<nil>) Body: <!--   ~
> Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights
> Reserved.   ~   ~ WSO2 Inc. licenses this file to you under the Apache
> License,   ~ Version 2.0 (the "License"); you may not use this file
> except   ~ in compliance with the License.   ~ You may obtain a copy
> of the License at   ~   ~ http://www.apache.org/licenses/LICENSE-2.0  
> ~   ~ Unless required by applicable law or agreed to in writing,   ~
> software distributed under the License is distributed on an   ~ "AS
> IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY   ~ KIND, either
> express or implied.  See the License for the   ~ specific language
> governing permissions and limitations   ~ under the License.   -->
> <html>
>     <head>
>         <title>Error 403</title>
>     </head>
>     <body>
>         <h1>Error 403 - Forbidden</h1>
>     </body> </html> Error occurred while login :  Request didn't respond 200 OK: 403 Forbidden*
   *config:   
        http_request_timeout: 10000
        export_directory: .wso2apimcli\exported 
    environments:   APIM-DEV:
    api_manager_endpoint: https://192.168.2.124:9443
    api_import_export_endpoint: https://192.168.2.124:9443/api-import-export-2.5.0-v1
    api_list_endpoint: https://192.168.2.124:9443/api/am/publisher/v0.12/apis
    application_list_endpoint: https://192.168.2.124:9443/api/am/store/v0.13/applications
    registration_endpoint: https://192.168.2.124:9443/client-registration/v0.13/register
    admin_endpoint: https://192.168.2.124:9443/api/am/admin/v0.13
    token_endpoint: https://192.168.2.124:8243/token*
问候,,
Buzzman

配置中的API版本错误。APIM 2.6.0的值应为0.14

    api_list_endpoint: https://192.168.2.124:9443/api/am/publisher/v0.14/apis
    application_list_endpoint: https://192.168.2.124:9443/api/am/store/v0.14/applications
    registration_endpoint: https://192.168.2.124:9443/client-registration/v0.14/register
    admin_endpoint: https://192.168.2.124:9443/api/am/admin/v0.14