【问题标题】:WSO2 3.2.0 - Publish an API - ERROR - APIGatewayManager ErrorWSO2 3.2.0 - 发布 API - 错误 - APIGatewayManager 错误
【发布时间】:2023-04-02 03:57:01
【问题描述】:

我有一个运行 openldap、mysql、wso2is 和 wso2am 的 docker 环境。我正在尝试使用 API Manager Publisher 发布 API,但遇到以下错误:

码头日志:

[2021-03-18 21:40:32,764]  INFO - CarbonAuthenticationUtil 'admin@wso2.com@carbon.super [-1234]' logged in at [2021-03-18 21:40:32,764+0000]
[2021-03-18 21:40:32,899] ERROR - APIGatewayManager Error occurred when publish to gateway Production and Sandbox
org.apache.axis2.AxisFault: Error while Deploying API 
at org.wso2.carbon.apimgt.impl.utils.APIGatewayAdminClient.deployAPI_aroundBody14(APIGatewayAdminClient.java:215) ~[org.wso2.carbon.apimgt.impl_6.7.206.jar:?]

原因:

at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: org.apache.axis2.AxisFault: Error while obtaining API information from gateway. null
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) ~[axis2_1.6.1.wso2v41.jar:?]

更多信息:

[2021-03-18 21:40:33,178]  INFO - DataBridge user admin@wso2.com connected
[2021-03-18 21:40:33,187] ERROR - DataEndpointConnectionWorker Error while trying to connect to the endpoint. Cannot borrow client for ssl://172.29.0.5:9712.
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://172.29.0.5:9712.

[2021-03-18 21:40:33,234]  INFO - CarbonAuthenticationUtil 'admin@wso2.com@carbon.super [-1234]' logged in at [2021-03-18 21:40:33,233+0000]
[2021-03-18 21:40:33,264] ERROR - APIGatewayManager Error occurred when check api is published on gatewayProduction and Sandbox

ssl 的端口 9712 在哪里定义?因为我在 docker 上没有此端口:
wso2am:3.2.0-alpine "/home/wso2carbon/wa..." 7 天前 上升 12 分钟(健康) 0.0.0.0:8243->8243/tcp, 5672/tcp, 9099/tcp, 0.0.0.0:8280- >8280/tcp, 9443/tcp, 9611/tcp, 9711/tcp, 9763/tcp, 9999/tcp, 11111/tcp, 0.0.0.0:9444->9444/tcp

我正在使用 WSO2 IS 作为密钥管理器,并且集成正在运行。现在我的问题只是当我尝试发布 API 时。

wso2is:5.10.0-alpine
wso2am:3.2.0-高山

PS:我已从 docker-compose 禁用网络,以免出现主机问题。

【问题讨论】:

    标签: wso2 wso2-am


    【解决方案1】:

    问题 01:

    Caused by: org.apache.axis2.AxisFault: Error while obtaining API information from gateway. null 
    

    上述错误很可能是由于发布者和网关服务器之间的连接问题。 要解决此问题,您可能需要验证 Publisher 节点中的网关配置。为此,请打开 <PUBLISHER_HOME>/repository/conf/deployment.toml 文件并 检查以下配置是否正确。

    [[apim.gateway.environment]]
    service_url = "https://<hostname_of_the_GW>:9443/services/"
    

    问题 02:

    ERROR - DataEndpointConnectionWorker Error while trying to connect to the endpoint. Cannot borrow client for ssl://172.29.0.5:9712.
    org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://172.29.0.5:9712.
    

    以上错误表示9712端口不可访问。此 9712 是 BinaryDataReceiver 为二进制 SSL 传输启动的默认端口,它将用于验证发布到流量管理器的数据。因此,您需要使该端口可用。

    【讨论】:

      猜你喜欢
      • 2021-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多