Andy_Eos 发表于 2021-11-24 18:39

抖音上传视频取上传地址问题

抖音上传视频取上传地址出现信息返回错误,各位大佬指点指点。

.版本 2

随机字符 = 脚本.计算表达式 (“Math.random().toString(16).substr(2)”)
str = 到文本 (网页_访问_对象 (“https://vod.bytedanceapi.com/?Action=ApplyUploadInner&Version=2020-11-19&SpaceName=aweme&FileType=video&IsInner=1&FileSize=2608299&s=” + 随机字符, 0, , 全局_cookies, , “Authorization: AWS4-HMAC-SHA256 Credential=” + AccessKeyID + “/20211124/cn-north-1/vod/aws4_request, SignedHeaders=x-amz-date;x-amz-security-token, Signature=342f914af11a444e64878b88e69785636b8060a9c072392d7d4cd5fe28418911”, , , , , , , , , , , ))

返回错误的信息:
{"ResponseMetadata":{"RequestId":"2021112418360801021120915009614901","Action":"ApplyUploadInner","Version":"2020-11-19","Service":"vod","Region":"cn-north-1","Error":{"CodeN":100004,"Code":"MissingRequestInfo","Message":"The request is missing %s information."}}}

Andy_Eos 发表于 2021-11-25 12:07

上面这个问题是提交的协议头不全,补全了之后提示Signature不对,这个是根据环境参数计算出来的经过HMACSHA256加密的字符串,卡这里了,Signature算出来跟实际对不上

yzhzhp 发表于 2022-1-16 20:13

这是手机的上传地址吧?电脑版不是这个接口啊
页: [1]
查看完整版本: 抖音上传视频取上传地址问题