2017-07-26 7 views
0

静的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へのリクエストを作成しようとすると、タイムアウトエラーが発生します。

これはなぜ発生していますか?

+0

ワイヤーログを有効にして、ログで質問を更新してください。 http://lakshanigamage.blogspot.com/2015/03/how-to-enable-wire-logs-in-wso2-esbapim.html – Bee

+0

@Bhathiya次に、これらのログを取得することができますか? –

+0

in repository/logs/wso2carbon.log – Bee

答えて

0

主な問題は、システム管理者がローカルネットワーク外のユーザの82808243ポートを開けなかったことです。

+0

:Dだから、唯一の問題ですか? –

+0

@AbimaranKugathasan XD yep。 –

関連する問題