上传部署访问云端报错url化
{"success":false,"error":{ "code":"FunctionBizError", "message":"CERT_HAS_EXPIRED:certificate has expired, POST https://api.openai.com/v1/completions -1 (connected: true, keepalive socket: false, agent status: {\"createSocketCount\":1,\"createSocketErrorCount\":0,\"closeSocketCount\":0,\"errorSocketCount\":1,\"timeoutSocketCount\":0, \"requestCount\":0,\"freeSockets\":{},\"sockets\":{\"api.openai.com:443:::::::::\":1},\"requests\":{}}, socketHandledRequests: 1, socketHandledResponses: 0)\nheaders: {}"}}
报这个错误并不是域名证书过期问题而是node运行环境版本太低
解决办法
在云函数package.json中修改nodejs的版本号
不报错响应正常