我已创建 API 密钥、输入 URL、API 和用户名,但 WP Discourse 插件返回了以下信息:
您未连接到 Discourse。请检查您的连接设置是否正确。如果问题仍然存在,请启用连接日志并检查日志。
这是我收到的日志。
[2022-06-05 17:20:38] connection.INFO: check_connection_status.failed_to_connect {“error”:“wpdc_response_error”,“message”:“从 Discourse 返回了无效响应”,“http_code”:“”,“http_body”:“”}
有时是这个日志。
[2022-06-05 16:14:55] connection.INFO: check_connection_status.failed_to_connect {“error”:“wpdc_response_error”,“message”:“从 Discourse 返回了无效响应”,“http_code”:404,“http_body”:“\r\n404 Not Found\r\n\r\n
404 Not Found
\r\n\r\nnginx\r\n\r\n\r\n”}
我还检查了 curl,这是我收到的。
curl: (60) SSL: no alternative certificate subject name matches target host name ‘cmasfo.com’
更多详情请参见:curl - SSL CA Certificates
curl 无法验证服务器的合法性,因此无法与其建立安全连接。要了解有关此情况的更多信息以及如何解决,请访问上面提到的网页。
在这种情况下我该怎么办?