对接阿里云短信服务,引入@alicloud/dysmsapi20170525依赖包。
本地云函数调试没问题,但是上传部署报这个错。
请求入参: {
"args": {},
"requestId": "DEF53146-12CF-5B1A-890C-692E3335EAE3"
}
[timerSms/DEF53146-12CF-5B1A-890C-692E3335EAE3/83ms/ERROR] Unexpected token
/tmp/function/node_modules/httpx/lib/index.js:348
exports.readAsSSE = async function (response) {
^
SyntaxError: Unexpected token *
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/function/node_modules/@alicloud/tea-typescript/dist/tea.js:76:26)
请求响应状态: fail
1 个回复
DCloud_uniCloud_WYQ
降低httpx这个依赖的版本,低到能支持你在云端用的nodejs版本