luolongfei/freenom

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

XiuSe opened this issue · 4 comments

XiuSe commented

描述问题

华为云函数执行出错:
缺少 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

你做了哪些尝试

无。

环境信息

  • 系统: (例如 debian11 x64)
  • PHP 版本: (例如 php8.0)
  • 脚本版本: (例如 v0.4.5)
  • 是否 Docker: (例如 是)

额外的备注

  • Add any other context about the problem here.
  • 可额外备注比如你的运行环境是否 NAS,是否宝塔面板等信息

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

XiuSe commented

没有 curl 就没办法执行。

XiuSe commented

没有 curl 就没办法执行。

哎,可惜了