静的IPアドレスを持つ仮想マシンにWSO2 APIマネージャーをホストしました。WSO2 APIマネージャー、新しいゲートウェイエンドポイントが起動しない
私はこれらのアドレスを入力することによって、私の炭素、出版社や店舗ページを開くことができます。
https://my.ip.address:9443/publisher
https://my.ip.address:9443/store
https://my.ip.address:9443/carbon
私は出版社のページに私のAPIを追加すると、それは内部使用のみのためです172.x.x.x.x
アドレスでエンドポイントを作成します。
だから、私の外に自分のエンドポイントにアクセスするためにAPIGateway
に私\wso2\wso2am-2.1.0\repository\conf\api-manager.xml
にこれらの行を書かれている:私は私のAPIを公開するとき
<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>
はナウプロダクションとサンドボックスのURLは以下のとおりです。
http://my.ip.address:8280/path/to/my/api
https://my.ip.address:8243/path/to/my/api
しかし、API URLへのリクエストを作成しようとすると、タイムアウトエラーが発生します。
これはなぜ発生していますか?
ワイヤーログを有効にして、ログで質問を更新してください。 http://lakshanigamage.blogspot.com/2015/03/how-to-enable-wire-logs-in-wso2-esbapim.html – Bee
@Bhathiya次に、これらのログを取得することができますか? –
in repository/logs/wso2carbon.log – Bee