I have seen similar issue posted on forum but there was no concrete solution.
I am trying to execute GET request on Katalon which takes authorization , access token and content type i as header parameters.
The URL looks like https://${uri_code}.execute-api.${aws_region}.amazonaws.com/api/users/${tenantId}
I get 403 response code with error message as
{
“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=eyJraWQiOiJHV3Q3b2FhM29vTmRadHNRcmx0R2FQVmxJbzFGXC9BSG1QSW1LajM0ZDI5cz0iLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiNDJtbU9hejZ1NkpBZnZ2VDJEQkNqUSIsInN1YiI6ImMzMjU1NWI1LTkwNWYtNDk3Zi04MWM0LThlN2E1OTE2OTg0ZiIsImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy13ZXN0LTIuYW1hem9uYXdzLmNvbVwvdXMtd2VzdC0yX0JlRTdYazdtVCIsImNvZ25pdG86dXNlcm5hbWUiOiJhZG1pbmlzdHJhdG9yIiwiZ2l2ZW5fbmFtZSI6IlNJVCIsImN1c3RvbTpob21lX3RlbmFudF9pZCI6IjM0NWVjZWNhYzQzNjQ4NTZhNzlmYTBhM2ExODYzMjZkIiwiYXVkIjoiMjRtbHQ0NXNiNmdxbGdxdnFzZjA2NG1oZyIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNTY0NzA3OTYwLCJleHAiOjE1NjQ3MTE1NjAsImlhdCI6MTU2NDcwNzk2MCwiZmFtaWx5X25hbWUiOiJTeXN0ZW1JbnRlZ3JhdGlvblRlc3QiLCJlbWFpbCI6InJhamVzaHJpLnphZGVAaXIuY29tIn0.lgtl5mENq6i2zoY09FwhyyRv6CfF0tMQlW8-VV19D-63UD4i-5Hs5SPz_6sBRS9qEHPjrHUV2RrE07bVtPbd9R1m_jB8FC_V6yKr2WDTQ0fzjILolSGpyug9SWjIFHGQe1kflBqFaeHqizBBxuMdk17EdEbbS7BnUTTXPNGycI5JtFLHOH9BwlSb59Lj_4TuAcETfDUGCVQXbxLengc2PveLw6VgWBVvVyMqArUrAOhxT9Ia0D1ORy1PVRekX6kLVqtZw8xyT-1Z3JibFjxADB32XJzfoUkOWYTKu62VO3k7yRPg_HTHBkZRCzyrArPKX6WjaMguwTrOOZw3UpCm4A”
}
You should assert that the value of Authorization header which you see in Katalon is the same as the one you see in Postman. Can you print the value of {{Authorization}} header in Postman?
Hi @rajeshri.zade,
From the response message and refer to the document that @kazurayam shows, it seems that your authorization header is missing some information. Are you sure that the one you provide is correct?
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
then I got a list of a few relevant posts in StackOveflow. It seems that you are not the only one who encountered this insident. Have a look at those posts, then you may get some Aha!
@kazurayam I have just now found out that the URL has a variable which is a global variable’s value and it gets set by test cases’s previous step execution.
There was a problem in the previous step which made that dynamic variable’s value (in URL) as empty ‘’
When I passed the right value the it works.
So there was nothing wrong with authorization/API keys.
Thanks, All for your inputs.