Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Invalid type for parameter registryIds #11

Closed
laughingman7743 opened this issue May 17, 2018 · 0 comments
Closed

Invalid type for parameter registryIds #11

laughingman7743 opened this issue May 17, 2018 · 0 comments

Comments

@laughingman7743
Copy link
Owner

Traceback (most recent call last):
  File "/usr/bin/ecr", line 11, in <module>
    sys.exit(cli())
  File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/ecr_cli/cli.py", line 72, in build
    debug=ctx.obj['debug'])
  File "/usr/lib/python2.7/site-packages/ecr_cli/action.py", line 32, in __init__
    self.login()
  File "/usr/lib/python2.7/site-packages/ecr_cli/action.py", line 37, in login
    self._registry_id)
  File "/usr/lib/python2.7/site-packages/ecr_cli/client.py", line 27, in get_authorization_token
    response = self._client.get_authorization_token(registryIds=[registry_id])
  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 314, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 586, in _make_api_call
    api_params, operation_model, context=request_context)
  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 621, in _convert_to_request_dict
    api_params, operation_model)
  File "/usr/lib/python2.7/site-packages/botocore/validate.py", line 291, in serialize_to_request
    raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter registryIds[0], value: 123456789, type: <type 'int'>, valid types: <type 'basestring'>
laughingman7743 added a commit that referenced this issue May 17, 2018
…stry_ids

Fix invalid type for registry ids (fix #11)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant