Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter

I have delivered aws serverless (LAmbda, API GW & DynamoDB), but during the developers test they have faced the following error with their 'Postman' utility:

{

    "message": "Authorization header requires 'Credential' parameter. 
               Authorization header requires 'Signature' parameter. 
               Authorization header requires 'SignedHeaders' parameter. 
               Authorization header requires existence of either a 'X-Amz-Date' or a 'Date'          
               header. 
               Authorization=xxxxxxxxxxxxxxxxxxxx"
} 

I have checked the cloudwatch logs but I didn't found anything and I assume that mean the request didn't reached the API endpoint, I don't know why.

Actually, I need to find out whether this error happening because of the Postman parameters or api endpoints.

P.S. Lambda code was developed using Python

Please advise.

like image 535
Haytham Avatar asked Jan 31 '26 22:01

Haytham


1 Answers

The errors are self-explanatory. No they are not. According the API Gateway troubleshooting docs, the error message:

Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter. Authorization header requires 'SignedHeaders' parameter. Authorization header requires existence of either a 'X-Amz-Date' or a 'Date' header. Authorization=allow

indicates that the resource path doesn't exist. Check your url and make sure you're accessing the correct endpoint.

like image 129
JesusGuzmanJr Avatar answered Feb 03 '26 18:02

JesusGuzmanJr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!