收藏
回答

更新云函数后,调用发送订阅消息API,一直返回无效json?

cloud.openapi.subscribeMessage

{
  "name": "xxxxxx",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "wx-server-sdk": "latest"
  },
  "permissions": {
    "openapi": [
      "subscribeMessage.send"
    ]
  }
}


更新云函数前,是一直正常的,更新完云函数后,发送订阅消息,都是返回错误,错误信息如下

{
  "errCode": -601001,
  "errMsg": "openapi.subscribeMessage.send:fail wechat server internal error, response body is invalid json:
 {\"errcode\":0,\"errmsg\":\"ok\",\"msgid\":2532347323633352704}"
}
回答关注问题邀请回答
收藏

1 个回答

  • 阿白
    阿白
    2022-08-17

    已解决,微信云服务SDK2.6.X版本有BUG,换为2.5.3版本即可正常

    2022-08-17
    有用
    回复
登录 后发表内容