云函数使用npm问题
云函数使用tencentcloud-sdk-nodejs
npm install tencentcloud-sdk-nodejs --save
本地调试没有问题,上传后发行打包出小程序后调用就报下面错误,使用阿里云和腾讯云都是报下面错误!不知道什么原因!请求官方技术支持!
code: "FUNCTIONS_EXECUTE_FAIL"
message: "The "original" argument must be of type function↵TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function↵ at promisify (internal/util.js:209:11)↵ at Object.<anonymous> (/var/user/node_modules/get-stream/index.js:7:35)↵ at Module._compile (module.js:643:30)↵ at Object.Module._extensions..js (module.js:654:10)↵ at Module.load (module.js:556:32)↵ at tryModuleLoad (module.js:499:12)↵ at Function.Module._load (module.js:491:3)↵ at Module.require (module.js:587:17)↵ at require (internal/module.js:11:18)↵ at Object.<anonymous> (/var/user/node_modules/tencentcloud-sdk-nodejs/tencentcloud/common/http/http_connection.js:7:19)"
requestId: "000a7afdc9bba"