模板消息 -501001。就我一个人遇到?
发布于 7 年前 作者 fengyan 6383 次浏览 来自 官方Issues

RT。大家的都正常吗?

完整请求

时间:2019-09-16T06:27:52.538Z

openid:oidPm5UKnPepGDaatU1WU9DB7rkA

完整请求:

START RequestId: 1befe24c-d84b-11e9-85a0-525400192d0e

Event RequestId: 1befe24c-d84b-11e9-85a0-525400192d0e

2019-09-16T06:27:52.538Z  { Error: errCode: -501001 resource system error | errMsg: templateMessage.send:fail signature calculated is different from client signature

    at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6366:28)

    at Object.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:421:35)

    at step (/var/user/node_modules/tslib/tslib.js:136:27)

    at Object.next (/var/user/node_modules/tslib/tslib.js:117:57)

    at fulfilled (/var/user/node_modules/tslib/tslib.js:107:62)

    at <anonymous>

    at process._tickCallback (internal/process/next_tick.js:188:7)

  errCode: -501001,

  errMsg: ‘templateMessage.send:fail signature calculated is different from client signature’ }

2019-09-16T06:27:52.540Z  oidPm5UKnPepGDaatU1WU9DB7rkA

5 回复

麻烦确认下wx-server-sdk版本和tcb-admin-node的版本,升级wx-server-sdk到最新版再试一下。

您好,为了提高定位问题的效率,请提供相关信息:
1.appid、涉及的openid
2.最近一次操作时间(特别说明,5小时内才有机会快速定位)
3.发送的请求
4.收到的回复消息
5.此是否必现呢?

小游戏问题,发错版块啦

1:appid:wxfd391217d72419e5,openid:无论任意id都这样。

2:刚刚才又试了。

3:云函数模板消息

4:

errCode: -501001,

errMsg: 'templateMessage.send:fail signature calculated is different from client signature'

5:必现

let {ENV}=cloud.getWXContext();  // new add

cloud.init({

// API 调用都保持和云函数当前所在环境一致

//env: cloud.DYNAMIC_CURRENT_ENV  //—This will failed

env: ENV   // this is ok!!   why ??

})

回到顶部