WSO2 - 3.2.0 - Docker - 创建一个 API - 连接错误
WSO2 - 3.2.0 - Docker - Create an API - Connection Error
我正在尝试从 WSO2 Publisher 中的休息服务创建一个新的 API,但当我尝试验证端点时出现错误:
当我去登录时它显示消息:
[2021-03-30 22:09:54,744] ERROR - ApisApiServiceImpl Error occurred while sending the HEAD request to the given endpoint url:
java.net.ConnectException: Connection refused (Connection refused)
我做错了什么?
如果我在尝试测试时继续创建,我会收到另一个错误:
[2021-03-30 22:15:31,311] WARN - SourceHandler I/O error: Received fatal alert: certificate_unknown
[2021-03-30 22:15:31,351] WARN - ConnectCallback Connection refused or failed for : localhost/127.0.0.1:8888
[2021-03-30 22:15:31,353] WARN - EndpointContext Endpoint : CpoExecutorAPI--v1.0.0_APIproductionEndpoint with address http://localhost:8888/cpo-executor/dev will be marked SUSPENDED as it failed
WARN - SourceHandler I/O error: Received fatal alert: certificate_unknown
根据上述警告,我们可以怀疑证书有问题。
因此,如果您最近对环境中的证书进行了任何更改,您能否检查 API Manager Keystore 中是否提供了所需的证书?
除了证书问题,导致此错误的另一个可能原因是网络连接。请确保在调用请求时没有任何网络问题并且网络连接稳定。另外,请检查您是否可以直接连接到提供的端点 URL 并毫无问题地获得响应。
我正在尝试从 WSO2 Publisher 中的休息服务创建一个新的 API,但当我尝试验证端点时出现错误:
当我去登录时它显示消息:
[2021-03-30 22:09:54,744] ERROR - ApisApiServiceImpl Error occurred while sending the HEAD request to the given endpoint url:
java.net.ConnectException: Connection refused (Connection refused)
我做错了什么?
如果我在尝试测试时继续创建,我会收到另一个错误:
[2021-03-30 22:15:31,311] WARN - SourceHandler I/O error: Received fatal alert: certificate_unknown
[2021-03-30 22:15:31,351] WARN - ConnectCallback Connection refused or failed for : localhost/127.0.0.1:8888
[2021-03-30 22:15:31,353] WARN - EndpointContext Endpoint : CpoExecutorAPI--v1.0.0_APIproductionEndpoint with address http://localhost:8888/cpo-executor/dev will be marked SUSPENDED as it failed
WARN - SourceHandler I/O error: Received fatal alert: certificate_unknown
根据上述警告,我们可以怀疑证书有问题。
因此,如果您最近对环境中的证书进行了任何更改,您能否检查 API Manager Keystore 中是否提供了所需的证书?
除了证书问题,导致此错误的另一个可能原因是网络连接。请确保在调用请求时没有任何网络问题并且网络连接稳定。另外,请检查您是否可以直接连接到提供的端点 URL 并毫无问题地获得响应。