简体   繁体   English

错误:无法从 APIM Admin API 检索自定义 url 信息 - WSO2 API Manager Analytics

[英]Error: Unable to retrieve custom url info from APIM Admin API - WSO2 API Manager Analytics

I am trying to configure WSO2 API Manager Analytics.我正在尝试配置 WSO2 API Manager Analytics。 I tried the Quick Setup locally (it works) and am now attempting the Standard Setup with API Manager in a VM and API Manager Analytics in a separate VM.我在本地尝试了快速设置(它有效),现在正在尝试使用 VM 中的 API Manager 和单独的 VM 中的 API Manager Analytics 进行标准设置。

But when I access /analytics-dashboard, I get a blank dark screen with the following error:但是当我访问 /analytics-dashboard 时,我得到一个空白的黑屏,并显示以下错误:

在此处输入图片说明

The returned error is :返回的错误是:

Error: Unable to retrieve custom url info from APIM Admin API错误:无法从 APIM Admin API 检索自定义 url 信息

Any pointers on what could have been misconfigured?关于可能配置错误的任何指示?

Please try the following:请尝试以下操作:

  1. Open the <API-M_ANALYTICS_HOME>/conf/dashboard/deployment.yaml file.打开<API-M_ANALYTICS_HOME>/conf/dashboard/deployment.yaml文件。

  2. Under properties section of auth.configs add the following property with the value set to APIM urlauth.configs properties部分下添加以下属性,并将值设置为 APIM url

    adminServiceBaseUrl: https://localhost:9443

Figured out your issue.想通了你的问题。 Simply简单地

  • You are using different versions of您正在使用不同版本的
  • WSO2 API Manager (Eg: wso2am-3.2.0) WSO2 API 管理器(例如:wso2am-3.2.0)
  • WSO2 APIM Analytics Dashboard and Worker (Eg: wso2am-analytics-3.1.0) WSO2 APIM 分析仪表板和工作器(例如:wso2am-analytics-3.1.0)

In order to verify if above is the issue you have,为了验证以上是否是您遇到的问题,

  1. Goto deployment.toml of wso2am-analytics: dashboard profile (Eg: /home/wso2carbon/wso2am-analytics-3.1.0/conf/dashboard/deployment.yaml)转到 wso2am-analytics 的 deployment.toml:仪表板配置文件(例如:/home/wso2carbon/wso2am-analytics-3.1.0/conf/dashboard/deployment.yaml)

  2. Change following param values of each key value pair of auth.configs:更改 auth.configs 的每个键值对的以下参数值:

     publisherUrl: https://mgt-apim:9443 devPortalUrl: https://mgt-apim:9443
  3. You should get an error similar to bewlow,你应该得到一个类似于下面的错误,

Exception occurred :No subject alternative DNS name matching mgt-apim found.发生异常:找不到与 mgt-apim 匹配的主题备用 DNS 名称。 executing GET https://mgt-apim:9443/api/am/admin/v0.16/custom-urls/carbon.super执行 GET https://mgt-apim:9443/api/am/admin/v0.16/custom-urls/carbon.super

Reason for above error is mismatching versions of API Manager and API Manager analytics.上述错误的原因是 API Manager 和 API Manager 分析的版本不匹配。

Note: If further help is needed please refer to this sample config, sample_wso2_apim_analytics_dashboard.yaml注意:如果需要进一步的帮助,请参考这个示例配置, sample_wso2_apim_analytics_dashboard.yaml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM