【反馈问题】在云函数中使用cloud.callFunction调用另一云函数报错
麻烦看下,在云函数中使用了【cloud.callFunction】调用了另一个云函数,通过“云回调事件推送”就报错;通过小程序中JS页面wx.cloud.callFunction使用就没问题。
如果在一个云函数中实现所有的方法也不会报错。
使用云开发中的云函数测试工具,也会报错,报错内容一致。(也是在一个云函数中实现所有方法不会报错)
返回结果 {"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"errCode: -504002 functions execute fail | errMsg: callFunction:fail requestID f36646ad-7e59-11e9-bce4-5254005d5fdb, errCode: -501007 invalid parameters | errMsg: customerServiceMessage.send:fail Invalid request param; at callFunction api; "} 日志 START RequestId: f360add3-7e59-11e9-b096-525400e8849e Event RequestId: f360add3-7e59-11e9-b096-525400e8849e 2019-05-24T19:27:21.203Z kfMsgRevice Start... Error: errCode: -504002 functions execute fail | errMsg: callFunction:fail requestID f36646ad-7e59-11e9-bce4-5254005d5fdb, errCode: -501007 invalid parameters | errMsg: customerServiceMessage.send:fail Invalid request param; at callFunction api; at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6172:28) at returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6224:16) at Object.returnAsFinalCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6238:13) at Cloud.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:1787:41) at step (/var/user/node_modules/tslib/tslib.js:133:27) at Object.throw (/var/user/node_modules/tslib/tslib.js:114:57) at rejected (/var/user/node_modules/tslib/tslib.js:105:69) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) END RequestId: f360add3-7e59-11e9-b096-525400e8849e Report RequestId: f360add3-7e59-11e9-b096-525400e8849e Duration:617ms Memory:256MB MaxMemoryUsed:1.109375MB |