云开发上传定时器失败了?

发布于 8 年前作者 guiying893580 次浏览最后编辑 8 年前来自 issues

工具版本:mac Nightly v1.02.1910182

云函数config.json代码

{
  "permissions": {
    "openapi": [
      "subscribeMessage.send"
    ]
  },
  "triggers": [
    {
      "name": "myTimer",
      "type": "timer",
      "config": "*/5 * * * * * *"
    }
  ]
}

上传触发器结果:Error: 解析 config.json 失败,请确认文件是标准 JSON 格式

1 回复
jie79
jie791 楼6 年前

我把你的代码一模一样拷贝过来试了一下,是可以上传的,要不你把开发者工具关掉重新打开,再试试看。