当前位置:网站首页>The same set of code returns normally sometimes and reports an error sometimes. Signature error authfailure SignatureFailure

The same set of code returns normally sometimes and reports an error sometimes. Signature error authfailure SignatureFailure

2022-06-24 02:00:00 shawyang

The same code , Sometimes normal return , Sometimes the signature error is returned AuthFailure.SignatureFailure

{

"Response": {

"Error": {

"Code": "AuthFailure.SignatureFailure",

"Message": "The provided credentials could not be validated. Please check your signature is correct."

},

"RequestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

}

Compared with , There are no special characters in the successful signature , Among the failures are + Number and other special characters

Read the official website signature algorithm document carefully , Found missing urlencode link , Normally ,get request , The final strings involved in string splicing are urlencode After the , There should be no + Number , Yes + No. means that urlencode link

V1 Algorithm :

V3 Algorithm :

原网站

版权声明
本文为[shawyang]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/11/20211108183847291M.html