【问题标题】:WSO2 API Manager, new gateway endpoint not wokingWSO2 API 管理器,新网关端点不工作
【发布时间】:2017-07-27 18:10:49
【问题描述】:

我已使用静态 IP 地址将 WSO2 API Manager 托管到我的虚拟机中。

我可以通过输入以下地址打开我的 Carbon、Publisher 和 Store 页面:

https://my.ip.address:9443/publisher
https://my.ip.address:9443/store
https://my.ip.address:9443/carbon

当我在我的发布者页面中添加我的 API 时,它会在 172.x.x.x.x 地址中创建端点,仅供内部使用。

因此,为了能够访问我的外部端点,我将\wso2\wso2am-2.1.0\repository\conf\api-manager.xml 中的这些行写入APIGateway

<APIGateway>
    <Environments>
        <Environment type="hybrid" api-console="true">
            <Name>Production and Sandbox</Name>
            <Description>This is a hybrid gateway that handles both production and sandbox token traffic.</Description>
            <!-- Server URL of the API gateway -->
            <ServerURL>https://localhost:${mgt.transport.https.port}${carbon.context}services/</ServerURL>
            <!-- Admin username for the API gateway. -->
            <Username>${admin.username}</Username>
            <!-- Admin password for the API gateway.-->
            <Password>${admin.password}</Password>
            <!-- Endpoint URLs for the APIs hosted in this API gateway.-->
            <GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port},http//my.ip.address:${http.nio.port},https://my.ip.address:${https.nio.port}</GatewayEndpoint>
        </Environment>
    </Environments>
</APIGateway>

现在,当我发布我的 API 时,生产和沙盒 URL 是:

 http://my.ip.address:8280/path/to/my/api
 https://my.ip.address:8243/path/to/my/api

但是,当我尝试向我的 API 网址发出请求时,我收到超时错误。

为什么会这样?

【问题讨论】:

  • 请启用有线日志并使用日志更新问题。 lakshanigamage.blogspot.com/2015/03/…
  • @Bhathiya 那么我在哪里可以获得这些日志?
  • 在存储库/logs/wso2carbon.log 中
  • @Bhathiya 我已经打开了这个文件。它向我展示了非常大的数据序列。复制粘贴所有这些似乎都没用。我应该在那里搜索什么?
  • 日志也应该打印在控制台(命令行)上。您可以在那里轻松隔离单个请求的日志。

标签: wso2 wso2-am


【解决方案1】:

主要问题是我的系统管理员没有为本地网络之外的用户打开82808243 端口。

【讨论】:

  • :D 那么,这是唯一的问题吗?
  • @AbimaranKugathasan XD 是的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多