收藏
回答

【已解决】上传云函数代码包返回错误

文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/cloudbase/updateFunctionCode.html

上传云函数代码包使用上传凭证返回的header提交代码的时候出现如下错误:

{"error":"Hostname/IP doesn't match certificate's altnames: \"Host: scf.tencentcloudapi.com. is not in the cert's altnames: DNS:servicewechat.com, DNS:rd.wechatapp.com, DNS:mp.weixinbridge.com, DNS:open.weixin.qq.com, DNS:minigame.weixin.qq.com, DNS:a.weixin.qq.com, DNS:mp.weixin.qq.com, DNS:game.weixin.qq.com, DNS:developers.weixin.qq.com, DNS:as.weixin.qq.com, DNS:api2.weixin.qq.com, DNS:api.weixin.qq.com, DNS:ad.weixin.qq.com, DNS:gamemaker.weixin.qq.com, DNS:sz.mp.weixin.qq.com, DNS:sz.api.weixin.qq.com, DNS:sh.api.weixin.qq.com, DNS:hk.open.weixin.qq.com, DNS:long.open.weixin.qq.com, DNS:hk.mp.weixin.qq.com, DNS:hk.api.weixin.qq.com, DNS:sz.open.weixin.qq.com\""}

提交的数据:

签名凭证:

Authorization:TC3-HMAC-SHA256 Credential=AKIDyrzk6UvWn5MB902-RBqP6_3TzJkOUTSZRrhl8LkJaXqYeZo0uTZg5EBxi6nXj7tB/2020-12-23/scf/tc3_request, SignedHeaders=content-type;host, Signature=1f74a763c7b57f873613b2916e2ad46865e42966a48039673d6f3bf2a9a2e65d\r\nHost:scf.tencentcloudapi.com\r\nContent-Type:application/json\r\nX-TC-Action:UpdateFunctionCode\r\nX-TC-Timestamp:1608713461\r\nX-TC-Version:2018-04-16\r\nX-TC-Region:ap-shanghai\r\nX-TC-Token:57Q5rWe8BM4CnUVR2uvy0Lym0I6M248a5652bc1548c2b86d3ea1ba2ba1eee65eJ3BTEbuhoif4C8dTCOo9R2MsVVmf4NM6SfRyUrSH4Wxv0WBXGqA-AxoiBvTbe4DZ5giVhxu0Wk1p7kznF6axj-SifltXRANVBbbUBv2Ue5ObiO9Rs4ZQM_1WEDzm89ybC3vphJRTnODKfPequNgs9ZGn1ELuYB3e4XJVMX9tleWG6xD-LzRX8p4SobO9t65utz-A5WIvu_PXEoT2U-Wkqwz1-SA0n6MnUv9Vwyj18lfy3eiAbkMyt5_eaSS7zpegE0J7G-jaSfr1kEB7ElRTrLY-0_1gjHFpkkGnmv_asNJYXe2CIsWg20_fksN1spA0wQ3zxOD4VExlrUuRIPCDRkgwfjO_LXbstyBpqHFEBUU
最后一次编辑于  2020-12-23
回答关注问题邀请回答
收藏

1 个回答

  • 拾忆
    拾忆
    2020-12-23

    感谢华哥帮忙排查~

    出现这个问题是因为接口URL设置被覆盖导致的。

    2020-12-23
    有用
    回复
登录 后发表内容
问题标签