Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with executing URL with query string. #27

Closed
Rushikesh005 opened this issue Oct 28, 2017 · 2 comments
Closed

Issue with executing URL with query string. #27

Rushikesh005 opened this issue Oct 28, 2017 · 2 comments

Comments

@Rushikesh005
Copy link

I'm facing an issue with executing a API Gateway URL.

./awscurl.py -X GET --region us-west-2 --access_key XXXXXXXXXXXX --secret_key XXXXXXXXXXXXXXXXX --service execute-api """https://xxxxx.execute-api.us-west-2.amazonaws.com/XX/YY/ZZZ?ids=[\{\"id\":\"aaaaa-bbb-cccc-dddd-1234567\"\}]&pid=aaaaa-bbb-cccc-dddd-1234567"""

I'm getting following response,
{"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."}
Traceback (most recent call last):
File "awscurl.py", line 334, in
sys.exit(main())
File "awscurl.py", line 329, in main
args.security_token or args.session_token
File "awscurl.py", line 232, in make_request
return send_request(uri, data, headers, method)
File "awscurl.py", line 262, in send_request
r.raise_for_status()
File "/opt/VRTSitrpgw/venv27/lib/python2.7/site-packages/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url:

Any help is appreciated.

@okigan
Copy link
Owner

okigan commented Oct 30, 2017

check escaping happening in your command line/shell, here is a simple example that works with query params:

awscurl --service s3 https://awscurl-sample-bucket.s3.amazonaws.com?a=b

@okigan
Copy link
Owner

okigan commented Jan 7, 2018

@Rushikesh005 closing this issue as stale -- contact/create a new issue if the problem re-occurs.

@okigan okigan closed this as completed Jan 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants