已经申请了图像识别的服务,云函数调用提示
[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')
这几个是怎么处理的?
相似问题