首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >WSO2应用编程接口管理器,新网关终结点不工作

WSO2应用编程接口管理器,新网关终结点不工作
EN

Stack Overflow用户
提问于 2017-07-26 21:55:40
回答 1查看 675关注 0票数 0

我已经使用静态ip地址将WSO2应用程序接口管理器托管到我的虚拟机中。

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

代码语言:javascript
运行
复制
https://my.ip.address:9443/publisher
https://my.ip.address:9443/store
https://my.ip.address:9443/carbon

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

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

代码语言:javascript
运行
复制
<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时,Production和Sandbox URL是:

代码语言:javascript
运行
复制
 http://my.ip.address:8280/path/to/my/api
 https://my.ip.address:8243/path/to/my/api

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

为什么会发生这种情况?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-07-27 18:10:49

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45329043

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档