首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >云函数调用识别提示授权失败?

云函数调用识别提示授权失败?

提问于 2019-10-12 15:47:34
回答 3关注 1查看 2.5K

已经申请了图像识别的服务,云函数调用提示

[TencentCloudSDKException] code:AuthFailure.UnauthorizedOperation message:You are not authorized to perform this operation. Check your CAM policies, and ensure that you are using the correct access keys. [you are not authorized to perform operation (ocr:IDCardOCR)

检查了示例代码中的

secret_id = os.environ.get('TENCENTCLOUD_SECRETID')

secret_key = os.environ.get('TENCENTCLOUD_SECRETKEY')

token = os.environ.get('TENCENTCLOUD_SESSIONTOKEN')

这几个是怎么处理的?

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档