-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
云函数下发送短信错误,本地发送短信正常 #86
Comments
经过多次测试发现,在云函数下,不能通过layer层调用该sdk 否则会报错 |
云函数中有这个sdk的内置版本,优先级比layer高,如果放到layer里面要用绝对路径引用,否则会引用到内置的较低版本 |
请问如何强制引用,有相关文档吗?多谢解答 |
建议到官网控制台提工单给云函数产品咨询下,在SDK这里提问可能无法解决问题。 |
https://main.qcloudimg.com/raw/document/product/pdf/583_19677_cn.pdf 其实按需安装包会更好,既避免了这个问题,也能减少体积 |
package.json 配置
代码
const tencentcloud = require("tencentcloud-sdk-nodejs");
错误信息
我遇到的情况和#69
的问题比较一致,只不过出问题的点不同,我也是将 node_modules 发布到 layer 层中引用的
The text was updated successfully, but these errors were encountered: