云函数使用订阅消息发送接口"subscribeMessage.send"在小程序端调用正常,使用API网关触发提示“-501007 invalid parameters”。
具体参数如下
{ touser: 'ot-Pu4hoj3dZ1WVw7mwZIST9-Jew',
page: '/pages/index/index',
lang: 'zh_CN',
data:
{ character_string1: { value: '123456' },
thing2: { value: '5分钟' } },
templateId: 'TJ111a56HoAQzM2J9Ale7yyeb0UT82kuOHUNhjJJluo',
miniprogramState: 'developer' }
调用结果:
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: -501007 invalid parameters | errMsg: subscribeMessage.send:fail Invalid request param\n at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:422:19)\n at process._tickCallback (internal/process/next_tick.js:68:7)","statusCode":430}
API网关指的是?
-501007是云端系统错误,请问目前是否正常?