Skip to content
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

和问题69 一样 在腾讯云serverless上,发送短信,报错没传SecretId #80

Closed
ruandao opened this issue Apr 19, 2021 · 2 comments

Comments

@ruandao
Copy link

ruandao commented Apr 19, 2021

环境:
"tencentcloud-sdk-nodejs": "3.0.266"

报错:

error TencentCloudSDKHttpException [Error]: The request is missing a required parameter `SecretId`.
    at SmsClient.parseResponse (/Users/cpu/gitClone/ylz/robot-management/node_modules/tencentcloud-sdk-nodejs/tencentcloud/common/abstract_client.js:138:33)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
    at async SmsClient.doRequest (/Users/cpu/gitClone/ylz/robot-management/node_modules/tencentcloud-sdk-nodejs/tencentcloud/common/abstract_client.js:100:16) {
  requestId: '01d08f06-3ec7-4cbc-878d-ede0cedaf2a3',
  code: 'MissingParameter'
}
@ruandao
Copy link
Author

ruandao commented Apr 19, 2021

试了 3.0268 报一样的错误

@zqfan
Copy link
Member

zqfan commented May 21, 2021

这种情况说明serverless环境上没能正确获取到密钥信息,如果密钥是从环境变量、配置文件中获取的,请检查下相关的配置

@zqfan zqfan closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants