WSO2 API管理器,新网关端点未工作
我已将WSO2 API管理器托管到具有静态ip地址的虚拟机中 通过输入以下地址,我可以打开我的碳、出版商和商店页面:WSO2 API管理器,新网关端点未工作,wso2,wso2-am,Wso2,Wso2 Am,我已将WSO2 API管理器托管到具有静态ip地址的虚拟机中 通过输入以下地址,我可以打开我的碳、出版商和商店页面: 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\rep
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发出请求时,会出现超时错误
发生这种情况的原因?主要问题是,我的系统管理员没有为本地网络之外的用户打开
8280
和8243
端口。请启用有线日志并用日志更新问题@Bhathiya那么我在哪里可以得到这些日志呢?在repository/logs/wso2carbon中。log@Bhathiya我已经打开了这个文件。它向我展示了非常大的数据序列。复制粘贴所有这些似乎都是无用的。我应该在那里搜索什么?日志也应该打印在控制台(命令行)上。您可以很容易地为单个请求隔离日志。:D那么,这是唯一的问题吗?@AbimaranKugathasan XD yesp。
http://my.ip.address:8280/path/to/my/api
https://my.ip.address:8243/path/to/my/api