You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何解决Rasa Core与HTTPS协议Action服务通信的证书验证问题

问题描述

之前在endpoints.yml中配置如下内容时,Rasa Core可正常与Action服务通信:

action_endpoint:
 url: "http://rasa-action.company.com:5055/webhook"

但为Action服务启用HTTPS并将端点改为"https://rasa-action.company.com:5055/webhook"后,Core服务日志出现以下错误:

raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host rasa-action.company.com:5055 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')]

Failed to execute custom action 'action_retrieve_username'. Couldn't connect to the server at 'https://rasa-action.company.com:5055/webhook.

从Core服务器curl Action服务URL时也报错:

$ curl https://rasa-action.company.com:5055/health 
curl: (77) error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs

我已按照官方说明为Core启用HTTPS,Core服务运行正常,基础设施也验证无误。从其他节点curl Action服务的health端点可正常返回:

$ curl https://rasa-action.company.com:5055/health
{"status":"ok"}

Action服务日志:

2023-02-18 11:23:15 INFO     rasa_sdk.endpoint  - Starting action endpoint server...
2023-02-18 11:23:15 INFO     rasa_sdk.executor  - Registered function for 'action_retrieve_username'.
2023-02-18 11:23:15 INFO     rasa_sdk.executor  - Registered function for 'validate_forgot_username_form'.
2023-02-18 11:23:16 INFO     rasa_sdk.endpoint  - Action endpoint is up and running on https://0.0.0.0:5055

请问我是否遗漏了某些配置项?


内容的提问来源于stack exchange,提问作者Alex

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 15:50:17