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

Route53 param validation for PageSize #1063

Closed
manuel-sousa opened this issue Oct 28, 2016 · 4 comments
Closed

Route53 param validation for PageSize #1063

manuel-sousa opened this issue Oct 28, 2016 · 4 comments
Labels
bug This issue is a confirmed bug.

Comments

@manuel-sousa
Copy link

manuel-sousa commented Oct 28, 2016

This might be related to #243

From cli:
aws route53 list-resource-record-sets --page-size 15 --hosted-zone-id 123

Parameter validation failed:
Invalid type for parameter MaxItems, value: 1, type: <class 'int'>, valid types: <class 'str'>

Tested this in ubuntu 16.10, before and after updateing boto, and latest amazon ami.

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 186, in main
return command_table[parsed_args.command](remaining, parsed_args)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 379, in call
return command_table[parsed_args.operation](remaining, parsed_globals)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 549, in call
call_parameters, parsed_globals)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 674, in invoke
self._display_response(operation_name, response, parsed_globals)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 683, in _display_response
formatter(command_name, response)
File "/usr/lib/python2.7/dist-packages/awscli/formatter.py", line 68, in call
response_data = response.build_full_result()
File "/usr/lib/python2.7/dist-packages/botocore/paginate.py", line 290, in build_full_result
for response in self:
File "/usr/lib/python2.7/dist-packages/botocore/paginate.py", line 102, in iter
response = self._make_request(current_kwargs)
File "/usr/lib/python2.7/dist-packages/botocore/paginate.py", line 174, in _make_request
return self._method(**current_kwargs)
File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 159, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 470, in _make_api_call
api_params, operation_model, context=request_context)
File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 523, in _convert_to_request_dict
api_params, operation_model)
File "/usr/lib/python2.7/dist-packages/botocore/validate.py", line 270, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
ParamValidationError: Parameter validation failed:
Invalid type for parameter MaxItems, value: 15, type: <type 'int'>, valid types: <type 'basestring'>
2016-10-28 12:10:42,279 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255

Parameter validation failed:
Invalid type for parameter MaxItems, value: 15, type: <type 'int'>, valid types: <type 'basestring'>

@JordonPhillips
Copy link
Contributor

What version(s) of the cli are producing this?

@manuel-sousa
Copy link
Author

On ubuntu (16.10) using updated botocore: aws-cli/1.10.1 Python/3.5.2 Linux/4.4.0-45-generic botocore/1.4.67
On aws ami (2016.09) using standard packages : aws-cli/1.10.56 Python/2.7.12 Linux/4.4.23-31.51.amzn1.x86_64 botocore/1.4.46

@joguSD
Copy link
Contributor

joguSD commented Jul 19, 2017

I'm able to confirm that this is still an issue.
The cli is converting the input to an integer but the actual operation in botocore is expecting a string.

@joguSD joguSD added bug This issue is a confirmed bug. and removed question labels Jul 19, 2017
@ayla-bala
Copy link

Still re-producible!

Skipped passing 'MaxItems' and 'PageSize'. It worked by applying default value '100'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

4 participants