通过Java SDK更新已有的函数(UpdateFunctionCode API)。
1. 直接上传jar,发生签名错误。
[TencentCloudSDKException]message:AuthFailure.SignatureFailure-The provided credentials could not be validated because of exceeding request size limit, please use new signature method `TC3-HMAC-SHA256`. requestId:bd6e368d-c5a8-4b31-841a-78f1e98ed162
我用的是ClientProfile.SIGN_SHA256,TC3-HMAC-SHA256这种算法还没有实现吧?
2. 改为通过COS上传更新。
不管ObjectName是短的名称xxx还是整个路径https://bucket.cos.region.mycloud.com/xxx.都会报错:
[TencentCloudSDKException]message:InternalError-An internal error has occurred. Retry your request, but if the problem persists, contact us. requestId:80b32195-4ecd-4bbd-a9d8-d1ee8e4e3550
相似问题