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

Could not connect to the endpoint URL: "http://localhost:4568/" #1258

Closed
YikSanChan opened this issue Apr 16, 2019 · 2 comments
Closed

Could not connect to the endpoint URL: "http://localhost:4568/" #1258

YikSanChan opened this issue Apr 16, 2019 · 2 comments

Comments

@YikSanChan
Copy link

YikSanChan commented Apr 16, 2019

docker-compose.yml:

version: '3'
services:
  localstack:
    image: "localstack/localstack"
    environment:
      - SERVICES=kinesis,dynamodb,cloudwatch
    ports:
      - "4568"
      - "4569"
      - "4582"

After I start docker, I run aws configure:

$ aws configure
AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [us-west-1]:
Default output format [None]:

and also

export AWS_ACCESS_KEY_ID=foobar
export AWS_SECRET_ACCESS_KEY=foobar

As a result,

$ aws configure list

      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key                <not set>             None    None
secret_key                <not set>             None    None
    region                us-west-1      config-file    ~/.aws/config

Then I try to access local kinesis streams running in docker:

$ aws --endpoint-url=http://localhost:4568 kinesis list-streams

However I get Could not connect to the endpoint URL: "http://localhost:4568/", even though I am pretty sure it is running in docker:

$ docker ps

CONTAINER ID        IMAGE                   COMMAND                  CREATED             STATUS              PORTS                                                                                                                         NAMES
61b8c7e2a21a        localstack/localstack   "docker-entrypoint.sh"   About an hour ago   Up About an hour    4567/tcp, 4570-4581/tcp, 4583-4593/tcp, 8080/tcp, 0.0.0.0:32776->4568/tcp, 0.0.0.0:32775->4569/tcp, 0.0.0.0:32774->4582/tcp   myproject_localstack_1

Here are the full log after I run aws --debug --endpoint-url=http://localhost:4568 kinesis list-streams

2019-04-16 13:13:39,715 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130
2019-04-16 13:13:39,715 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['--debug', '--endpoint-url=http://localhost:4568', 'kinesis', 'list-streams']
2019-04-16 13:13:39,715 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x105d10b70>
2019-04-16 13:13:39,715 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x105754f28>
2019-04-16 13:13:39,715 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x1057b4488>
2019-04-16 13:13:39,722 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x105be1048>
2019-04-16 13:13:39,722 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/data/kinesis/2013-12-02/service-2.json
2019-04-16 13:13:39,723 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.kinesis: calling handler <function register_retries_for_service at 0x1052b8f28>
2019-04-16 13:13:39,724 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: kinesis
2019-04-16 13:13:39,724 - MainThread - botocore.hooks - DEBUG - Event building-command-table.kinesis: calling handler functools.partial(<function _remove_commands at 0x105cae048>, commands_to_remove=['subscribe-to-shard'])
2019-04-16 13:13:39,725 - MainThread - awscli.customizations.removals - DEBUG - Removing operation: subscribe-to-shard
2019-04-16 13:13:39,725 - MainThread - botocore.hooks - DEBUG - Event building-command-table.kinesis: calling handler <function add_waiters at 0x105d1b158>
2019-04-16 13:13:39,732 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/data/kinesis/2013-12-02/waiters-2.json
2019-04-16 13:13:39,733 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('limit', <awscli.arguments.CLIArgument object at 0x105ec8fd0>), ('exclusive-start-stream-name', <awscli.arguments.CLIArgument object at 0x105eb3f28>)])
2019-04-16 13:13:39,733 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.list-streams: calling handler <function add_streaming_output_arg at 0x105d17158>
2019-04-16 13:13:39,733 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.list-streams: calling handler <function add_cli_input_json at 0x1057b4b70>
2019-04-16 13:13:39,733 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.list-streams: calling handler <function unify_paging_params at 0x105c92e18>
2019-04-16 13:13:39,740 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/data/kinesis/2013-12-02/paginators-1.json
2019-04-16 13:13:39,741 - MainThread - awscli.customizations.paginate - DEBUG - Modifying paging parameters for operation: ListStreams
2019-04-16 13:13:39,741 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.list-streams: calling handler <function add_generate_skeleton at 0x105c76c80>
2019-04-16 13:13:39,741 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.kinesis.list-streams: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x105ecd048>>
2019-04-16 13:13:39,741 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.kinesis.list-streams: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x105ed7550>>
2019-04-16 13:13:39,748 - MainThread - botocore.hooks - DEBUG - Event operation-args-parsed.kinesis.list-streams: calling handler functools.partial(<function check_should_enable_pagination at 0x105c92f28>, ['exclusive-start-stream-name', 'limit'], {}, OrderedDict([('limit', <awscli.arguments.CLIArgument object at 0x105ec8fd0>), ('exclusive-start-stream-name', <awscli.arguments.CLIArgument object at 0x105eb3f28>), ('cli-input-json', <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x105ecd048>), ('starting-token', <awscli.customizations.paginate.PageArgument object at 0x105ecd0b8>), ('page-size', <awscli.customizations.paginate.PageArgument object at 0x105ed73c8>), ('max-items', <awscli.customizations.paginate.PageArgument object at 0x105ed7470>), ('generate-cli-skeleton', <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x105ed7550>)]))
2019-04-16 13:13:39,748 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.list-streams.limit: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105decfd0>
2019-04-16 13:13:39,748 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.list-streams.exclusive-start-stream-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105decfd0>
2019-04-16 13:13:39,749 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.list-streams.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105decfd0>
2019-04-16 13:13:39,749 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.list-streams.starting-token: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105decfd0>
2019-04-16 13:13:39,749 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.list-streams.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105decfd0>
2019-04-16 13:13:39,749 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.list-streams.max-items: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105decfd0>
2019-04-16 13:13:39,749 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.list-streams.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x105decfd0>
2019-04-16 13:13:39,749 - MainThread - botocore.hooks - DEBUG - Event calling-command.kinesis.list-streams: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x105ecd048>>
2019-04-16 13:13:39,749 - MainThread - botocore.hooks - DEBUG - Event calling-command.kinesis.list-streams: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x105ed7550>>
2019-04-16 13:13:39,749 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2019-04-16 13:13:39,749 - MainThread - botocore.credentials - INFO - Found credentials in environment variables.
2019-04-16 13:13:39,750 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/data/endpoints.json
2019-04-16 13:13:39,752 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x105293ea0>
2019-04-16 13:13:39,753 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.kinesis: calling handler <function add_generate_presigned_url at 0x105251ae8>
2019-04-16 13:13:39,753 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2019-04-16 13:13:39,756 - MainThread - botocore.endpoint - DEBUG - Setting kinesis timeout as (60, 60)
2019-04-16 13:13:39,757 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: kinesis
2019-04-16 13:13:39,758 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.kinesis.ListStreams: calling handler <function generate_idempotent_uuid at 0x1052b88c8>
2019-04-16 13:13:39,758 - MainThread - botocore.hooks - DEBUG - Event before-call.kinesis.ListStreams: calling handler <function inject_api_version_header_if_needed at 0x1052bb400>
2019-04-16 13:13:39,758 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=ListStreams) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'Kinesis_20131202.ListStreams', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130'}, 'body': b'{}', 'url': 'http://localhost:4568/', 'context': {'client_region': 'us-west-1', 'client_config': <botocore.config.Config object at 0x107806ba8>, 'has_streaming_input': False, 'auth_type': None}}
2019-04-16 13:13:39,758 - MainThread - botocore.hooks - DEBUG - Event request-created.kinesis.ListStreams: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x107806b70>>
2019-04-16 13:13:39,758 - MainThread - botocore.hooks - DEBUG - Event choose-signer.kinesis.ListStreams: calling handler <function set_operation_specific_signer at 0x1052b87b8>
2019-04-16 13:13:39,759 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-04-16 13:13:39,759 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:localhost:4568
x-amz-date:20190416T201339Z
x-amz-target:Kinesis_20131202.ListStreams

content-type;host;x-amz-date;x-amz-target
44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
2019-04-16 13:13:39,759 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190416T201339Z
20190416/us-west-1/kinesis/aws4_request
6eaff51ec262ca7efaa6799369ba1b3b460850cfdae11a1a15a06491487da681
2019-04-16 13:13:39,759 - MainThread - botocore.auth - DEBUG - Signature:
3f044894bf144da3455c2012a814149e6f27a0cf069dfa5911268f08b2b73d4f
2019-04-16 13:13:39,759 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=http://localhost:4568/, headers={'X-Amz-Target': b'Kinesis_20131202.ListStreams', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130', 'X-Amz-Date': b'20190416T201339Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=foobar/20190416/us-west-1/kinesis/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=3f044894bf144da3455c2012a814149e6f27a0cf069dfa5911268f08b2b73d4f', 'Content-Length': '2'}>
2019-04-16 13:13:39,759 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-04-16 13:13:39,760 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:4568
2019-04-16 13:13:39,761 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x10785a898>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:39,764 - MainThread - botocore.hooks - DEBUG - Event needs-retry.kinesis.ListStreams: calling handler <botocore.retryhandler.RetryHandler object at 0x105eb38d0>
2019-04-16 13:13:39,764 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: Could not connect to the endpoint URL: "http://localhost:4568/"
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x10785a898>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 269, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 317, in __call__
    caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 223, in __call__
    attempt_number, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:39,764 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 0.5242186152282033
2019-04-16 13:13:39,764 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.5242186152282033 seconds
2019-04-16 13:13:40,291 - MainThread - botocore.hooks - DEBUG - Event request-created.kinesis.ListStreams: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x107806b70>>
2019-04-16 13:13:40,291 - MainThread - botocore.hooks - DEBUG - Event choose-signer.kinesis.ListStreams: calling handler <function set_operation_specific_signer at 0x1052b87b8>
2019-04-16 13:13:40,292 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-04-16 13:13:40,292 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:localhost:4568
x-amz-date:20190416T201340Z
x-amz-target:Kinesis_20131202.ListStreams

content-type;host;x-amz-date;x-amz-target
44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
2019-04-16 13:13:40,292 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190416T201340Z
20190416/us-west-1/kinesis/aws4_request
ce5efd525472c4d2adadcf96636cafaa26e0067a5b7b4ce497b0ef0365c3865b
2019-04-16 13:13:40,292 - MainThread - botocore.auth - DEBUG - Signature:
d2101ef146f9c89eb8ce8585ef07d029f91aeac6a71cbfe1ba69c1c158c6743f
2019-04-16 13:13:40,292 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=http://localhost:4568/, headers={'X-Amz-Target': b'Kinesis_20131202.ListStreams', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130', 'X-Amz-Date': b'20190416T201340Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=foobar/20190416/us-west-1/kinesis/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=d2101ef146f9c89eb8ce8585ef07d029f91aeac6a71cbfe1ba69c1c158c6743f', 'Content-Length': '2'}>
2019-04-16 13:13:40,293 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-04-16 13:13:40,293 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (2): localhost:4568
2019-04-16 13:13:40,294 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078a8ba8>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:40,295 - MainThread - botocore.hooks - DEBUG - Event needs-retry.kinesis.ListStreams: calling handler <botocore.retryhandler.RetryHandler object at 0x105eb38d0>
2019-04-16 13:13:40,296 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: Could not connect to the endpoint URL: "http://localhost:4568/"
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078a8ba8>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 269, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 317, in __call__
    caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 223, in __call__
    attempt_number, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:40,296 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 0.4137878052319073
2019-04-16 13:13:40,296 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.4137878052319073 seconds
2019-04-16 13:13:40,715 - MainThread - botocore.hooks - DEBUG - Event request-created.kinesis.ListStreams: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x107806b70>>
2019-04-16 13:13:40,716 - MainThread - botocore.hooks - DEBUG - Event choose-signer.kinesis.ListStreams: calling handler <function set_operation_specific_signer at 0x1052b87b8>
2019-04-16 13:13:40,716 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-04-16 13:13:40,716 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:localhost:4568
x-amz-date:20190416T201340Z
x-amz-target:Kinesis_20131202.ListStreams

content-type;host;x-amz-date;x-amz-target
44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
2019-04-16 13:13:40,717 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190416T201340Z
20190416/us-west-1/kinesis/aws4_request
ce5efd525472c4d2adadcf96636cafaa26e0067a5b7b4ce497b0ef0365c3865b
2019-04-16 13:13:40,717 - MainThread - botocore.auth - DEBUG - Signature:
d2101ef146f9c89eb8ce8585ef07d029f91aeac6a71cbfe1ba69c1c158c6743f
2019-04-16 13:13:40,717 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=http://localhost:4568/, headers={'X-Amz-Target': b'Kinesis_20131202.ListStreams', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130', 'X-Amz-Date': b'20190416T201340Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=foobar/20190416/us-west-1/kinesis/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=d2101ef146f9c89eb8ce8585ef07d029f91aeac6a71cbfe1ba69c1c158c6743f', 'Content-Length': '2'}>
2019-04-16 13:13:40,717 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-04-16 13:13:40,718 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (3): localhost:4568
2019-04-16 13:13:40,719 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078fe128>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:40,720 - MainThread - botocore.hooks - DEBUG - Event needs-retry.kinesis.ListStreams: calling handler <botocore.retryhandler.RetryHandler object at 0x105eb38d0>
2019-04-16 13:13:40,720 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: Could not connect to the endpoint URL: "http://localhost:4568/"
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078fe128>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 269, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 317, in __call__
    caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 223, in __call__
    attempt_number, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:40,721 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 1.2293299230892747
2019-04-16 13:13:40,721 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.2293299230892747 seconds
2019-04-16 13:13:41,952 - MainThread - botocore.hooks - DEBUG - Event request-created.kinesis.ListStreams: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x107806b70>>
2019-04-16 13:13:41,952 - MainThread - botocore.hooks - DEBUG - Event choose-signer.kinesis.ListStreams: calling handler <function set_operation_specific_signer at 0x1052b87b8>
2019-04-16 13:13:41,953 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-04-16 13:13:41,953 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:localhost:4568
x-amz-date:20190416T201341Z
x-amz-target:Kinesis_20131202.ListStreams

content-type;host;x-amz-date;x-amz-target
44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
2019-04-16 13:13:41,953 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190416T201341Z
20190416/us-west-1/kinesis/aws4_request
4221844ab8c7c293fb1f0994a7d911a93dfa55e932781ed24b9b918a9b37cf47
2019-04-16 13:13:41,953 - MainThread - botocore.auth - DEBUG - Signature:
70d206f1f90238863568fe434651e9703a53eed4e3831533a48be078b046b550
2019-04-16 13:13:41,953 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=http://localhost:4568/, headers={'X-Amz-Target': b'Kinesis_20131202.ListStreams', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130', 'X-Amz-Date': b'20190416T201341Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=foobar/20190416/us-west-1/kinesis/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=70d206f1f90238863568fe434651e9703a53eed4e3831533a48be078b046b550', 'Content-Length': '2'}>
2019-04-16 13:13:41,954 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-04-16 13:13:41,954 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (4): localhost:4568
2019-04-16 13:13:41,955 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078fe668>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:41,956 - MainThread - botocore.hooks - DEBUG - Event needs-retry.kinesis.ListStreams: calling handler <botocore.retryhandler.RetryHandler object at 0x105eb38d0>
2019-04-16 13:13:41,956 - MainThread - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: Could not connect to the endpoint URL: "http://localhost:4568/"
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078fe668>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 269, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 317, in __call__
    caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 223, in __call__
    attempt_number, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:41,957 - MainThread - botocore.retryhandler - DEBUG - Retry needed, action of: 7.019601630880254
2019-04-16 13:13:41,957 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 7.019601630880254 seconds
2019-04-16 13:13:48,979 - MainThread - botocore.hooks - DEBUG - Event request-created.kinesis.ListStreams: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x107806b70>>
2019-04-16 13:13:48,979 - MainThread - botocore.hooks - DEBUG - Event choose-signer.kinesis.ListStreams: calling handler <function set_operation_specific_signer at 0x1052b87b8>
2019-04-16 13:13:48,980 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-04-16 13:13:48,980 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:localhost:4568
x-amz-date:20190416T201348Z
x-amz-target:Kinesis_20131202.ListStreams

content-type;host;x-amz-date;x-amz-target
44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
2019-04-16 13:13:48,980 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190416T201348Z
20190416/us-west-1/kinesis/aws4_request
1cfa183a674e16a4ea946998e06f3e43308c32b5860646883ac05ef286b42af8
2019-04-16 13:13:48,980 - MainThread - botocore.auth - DEBUG - Signature:
21b081928861a6776642e79872ac3d418981c959c37e05c92a9c6aa3b7124a6a
2019-04-16 13:13:48,980 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=http://localhost:4568/, headers={'X-Amz-Target': b'Kinesis_20131202.ListStreams', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130', 'X-Amz-Date': b'20190416T201348Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=foobar/20190416/us-west-1/kinesis/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=21b081928861a6776642e79872ac3d418981c959c37e05c92a9c6aa3b7124a6a', 'Content-Length': '2'}>
2019-04-16 13:13:48,981 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
2019-04-16 13:13:48,981 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (5): localhost:4568
2019-04-16 13:13:48,983 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078feba8>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:49,029 - MainThread - botocore.hooks - DEBUG - Event needs-retry.kinesis.ListStreams: calling handler <botocore.retryhandler.RetryHandler object at 0x105eb38d0>
2019-04-16 13:13:49,030 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 258, in send
    decode_content=False,
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/util/retry.py", line 343, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 125, in _send_request
    method, url, body, headers, *args, **kwargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 152, in _send_output
    self.send(msg)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/awsrequest.py", line 236, in send
    return super(AWSConnection, self).send(str)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x1078feba8>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/awscli/clidriver.py", line 207, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/usr/local/lib/python3.7/site-packages/awscli/clidriver.py", line 348, in __call__
    return command_table[parsed_args.operation](remaining, parsed_globals)
  File "/usr/local/lib/python3.7/site-packages/awscli/clidriver.py", line 520, in __call__
    call_parameters, parsed_globals)
  File "/usr/local/lib/python3.7/site-packages/awscli/clidriver.py", line 641, in invoke
    self._display_response(operation_name, response, parsed_globals)
  File "/usr/local/lib/python3.7/site-packages/awscli/clidriver.py", line 661, in _display_response
    formatter(command_name, response)
  File "/usr/local/lib/python3.7/site-packages/awscli/formatter.py", line 69, in __call__
    response_data = response.build_full_result()
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/paginate.py", line 449, in build_full_result
    for response in self:
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/paginate.py", line 255, in __iter__
    response = self._make_request(current_kwargs)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/paginate.py", line 332, in _make_request
    return self._method(**current_kwargs)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/client.py", line 648, in _make_api_call
    operation_model, request_dict, request_context)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/client.py", line 667, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 102, in make_request
    return self._send_request(request_dict, operation_model)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 137, in _send_request
    success_response, exception):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 231, in _needs_retry
    caught_exception=caught_exception, request_dict=request_dict)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/hooks.py", line 356, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/hooks.py", line 228, in emit
    return self._emit(event_name, kwargs)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/hooks.py", line 211, in _emit
    response = handler(**kwargs)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 183, in __call__
    if self._checker(attempts, response, caught_exception):
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 251, in __call__
    caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 277, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 317, in __call__
    caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 223, in __call__
    attempt_number, caught_exception)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 200, in _do_get_response
    http_response = self._send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/endpoint.py", line 244, in _send
    return self.http_session.send(request)
  File "/Users/echan/Library/Python/3.7/lib/python/site-packages/botocore/httpsession.py", line 278, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4568/"
2019-04-16 13:13:49,032 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255

Could not connect to the endpoint URL: "http://localhost:4568/"

I also try awslocal kinesis list-streams but I get exactly the same error. Any help?

$ aws --version
aws-cli/1.16.140 Python/3.7.3 Darwin/18.2.0 botocore/1.12.130

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.3
BuildVersion:	18D42
@erick-rodriguez
Copy link

erick-rodriguez commented Apr 16, 2019

my configuration seems to work fine... probably your python version is making the problem:

$aws --version                                           
aws-cli/1.16.82 Python/3.6.7 Darwin/18.5.0 botocore/1.12.72

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.4
BuildVersion:   18E226

Also I had to do a work around yaml since it was kicking me up and not starting localstack....

@YikSanChan
Copy link
Author

version: '3'
services:
  localstack:
    image: "localstack/localstack"
    environment:
      - SERVICES=kinesis,dynamodb,cloudwatch
    ports:
      - "4568:4568"
      - "4569:4569"
      - "4582:4582"

fixes the issue

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