question

Portfolio avatar image
Portfolio asked

AWS API shown "The access token you provided has expired."

I am using the Get Order API by postman. Although I have input the params and authorization with AWS signature. In the header tab, I set a key "x-amz-access-token" value "Atza|IwEBIM6m4zZpbfVC-0hxcQRzWIlDq-WmxpOZzzw6mPIhiULymSXuBT4hZnEq3Jf8d8EK907EcTK6WZ9fp5RZXBcZ5UrwWGo4nC98WMxdUP055lrMpGoAOdvO7VnhOlwCAuG__4soN8XXEmWCvoHnAAhVGuzBYJpicI9EP5hnakGqBiFU3sfhZLVFXxDQDZOWZOfHHPLOslvjunY5cycCCRxyG4J-ztsoV4zYfuXi-yqgrGwoYfP__cCs3f8enJ7Jc9hGXkV8QHV_SiMgpTL3-_Adtufb0CWYzyMittk45EqbAK7yc3T0ozI4uK5kefUOis0z_JEt-_NmW18h30yjBf4oyZZ-"
Then, there is a error with
"message": "Access to requested resource is denied.",
 "code": "Unauthorized",
 "details": "The access token you provided has expired."

I try to get the token by the API "OAuth Code to Token" first, there is a error with
"message": "Access to requested resource is denied.",  
"code": "Unauthorized",
"details": ""

what is the solution?
apiaws
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Ross@Amazon avatar image
Ross@Amazon answered

Hi Portfolio,

For assistance with AWS, please use the AWS forums at https://repost.aws/.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.