蒸发js:恢复上传后始终获得403 signaturedoesnotmatch错误
我完全符合官方文档和示例。 我的服务器端程序正常用于签名V4,并且多部分上传的上传正确。
但是我对暂停和恢复功能有问题。 当我暂停上传时,恢复后,第一个PUT请求始终会获取403(SignaturedOesnotMatch)
错误。
经过更多的研究,看来库将错误的StringTosign
发送到服务器上以签名以在简历后的第一次尝试时签名。
这是最后一个str_to_sign
在暂停之前,
AWS4-HMAC-SHA256
*20220608T114339Z*
20220608/default/s3/aws4_request
**b45c4ca1a7c7744ea2f3b6507bd3452317773cf30b860f4d98de662b8f7a85b6**
这是恢复后的第一个str_to_sign
AWS4-HMAC-SHA256
*20220608T114345Z*
20220608/default/s3/aws4_request
**b45c4ca1a7c7744ea2f3b6507bd3452317773cf30b860f4d98de662b8f7a85b6**
,因为您可以在上面更改时间,但CanonicalRequest值是相同的。
I use EvaporateJS in full compliance with official documentation and examples.
My server side program works properly for signing v4, and the multipart upload is done properly.
But I have a problem with the pause and resume functions.
When I pause an upload, after resuming it, the first PUT request always gets a 403 (SignatureDoesNotMatch)
error.
After a bit more research, it seems that the reason is that the library sends the wrong stringToSign
to the server for signing on the first attempt after the resume.
This is last str_to_sign
before pausing
AWS4-HMAC-SHA256
*20220608T114339Z*
20220608/default/s3/aws4_request
**b45c4ca1a7c7744ea2f3b6507bd3452317773cf30b860f4d98de662b8f7a85b6**
This is the first str_to_sign after resuming
AWS4-HMAC-SHA256
*20220608T114345Z*
20220608/default/s3/aws4_request
**b45c4ca1a7c7744ea2f3b6507bd3452317773cf30b860f4d98de662b8f7a85b6**
As you can see above the time has been changed but the canonicalRequest values are the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为应删除
avopate.js
的行1815
。if(typeof this._cr!=='undefined'){返回this._cr; }
I think the line
1815
of theevaporate.js
should be deleted.if (typeof this._cr !== 'undefined') { return this._cr; }