luolongfei / freenom

Freenom 域名自动续期。Freenom domain name renews automatically.
MIT License
3.33k stars 1.77k forks source link

华为云函数执行出错:缺少 curl 模块,无法发送请求,请检查你的 php 环境并在编译时带上 curl 模块(Error code: 34520010) #210

Open XiuSe opened 1 year ago

XiuSe commented 1 year ago

描述问题

华为云函数执行出错:
缺少 curl 模块,无法发送请求,请检查你的 php 环境并在编译时带上 curl 模块(Error code: 34520010)

重现步骤

截图&日志

  • 执行成功
  • 函数返回
  • 云函数执行失败。
  • 日志
  • 2023-03-05T05:32:02Z Start invoke request 'ddc45b77-07d7-497d-a2ac-391c61c369e2', version: latest
  • 2023-03-05T05:32:02Z ddc45b77-07d7-497d-a2ac-391c61c369e2 INFO 开始执行华为云函数
  • 2023-03-05T05:32:02Z ddc45b77-07d7-497d-a2ac-391c61c369e2 INFO 设置环境变量
  • 2023-03-05T05:32:02Z ddc45b77-07d7-497d-a2ac-391c61c369e2 INFO 从控制台发现环境变量:FREENOM_USERNAME
  • 2023-03-05T05:32:02Z ddc45b77-07d7-497d-a2ac-391c61c369e2 INFO 从控制台发现环境变量:FREENOM_PASSWORD
  • 2023-03-05T05:32:02Z ddc45b77-07d7-497d-a2ac-391c61c369e2 INFO 环境变量设置完成
  • [2023-03-05 13:32:02] 检测到当前运行环境非普通 VPS 或者程序无项目根目录的读写权限,故所有环境变量将直接从环境中读取,环境中找不到的变量,则直接从 .env.example 文件中读取
  • [2023-03-05 13:32:02] 执行出错:缺少 curl 模块,无法发送请求,请检查你的 php 环境并在编译时带上 curl 模块(Error code: 34520010)
  • 2023-03-05T05:32:05Z Finish invoke request 'ddc45b77-07d7-497d-a2ac-391c61c369e2', duration: 2977.521ms, billing duration: 2978ms, memory used: 23.105MB, billing memory: 128MB

你做了哪些尝试

无。

环境信息

额外的备注

luolongfei commented 1 year ago

环境里没有 curl 插件,试试换个环境

XiuSe commented 1 year ago

这个是华为云函数 我应该决定不了

luolongfei @.***> 於 2023年3月5日週日 下午4:29寫道:

环境里没有 curl 插件,试试换个环境

— Reply to this email directly, view it on GitHub https://github.com/luolongfei/freenom/issues/210#issuecomment-1455024512, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6LTNA2HEWD3XD7WHV7OLLW2RFINANCNFSM6AAAAAAVP66CRY . You are receiving this because you authored the thread.Message ID: @.***>

luolongfei commented 1 year ago

没有 curl 就没办法执行。

XiuSe commented 1 year ago

没有 curl 就没办法执行。

哎,可惜了