我在 docker 中运行 Python Falcon 应用程序。我试图在将其部署到弹性 beantalk 之前在本地工作。当我尝试连接在另一个 Docker 中运行的本地 DynamoDB 时,出现以下错误。
hayirlisi_test | Traceback (most recent call last):
hayirlisi_test | File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn
hayirlisi_test | (self._dns_host, self.port), self.timeout, **extra_kw)
hayirlisi_test | File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 80, in create_connection
hayirlisi_test | raise err
hayirlisi_test | File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 70, in create_connection
hayirlisi_test | sock.connect(sa)
hayirlisi_test | ConnectionRefusedError: [Errno 111] Connection refused
hayirlisi_test |
hayirlisi_test | During handling of the above exception, another exception occurred:
hayirlisi_test |
hayirlisi_test | Traceback (most recent call last):
hayirlisi_test | File "/usr/local/lib/python3.6/site-packages/botocore/httpsession.py", line 258, in send
hayirlisi_test | decode_content=False,
hayirlisi_test | File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
hayirlisi_test | _stacktrace=sys.exc_info()[2])
hayirlisi_test | File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 343, in increment
hayirlisi_test | raise six.reraise(type(error), error, _stacktrace)
hayirlisi_test | File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
我的 DynamoDB 变量声明如下所示
dynamodb = boto3.client('dynamodb', aws_access_key_id="anything",aws_secret_access_key="anything",region_name="local",endpoint_url="http://127.0.0.1:8000/%22)
我也尝试使用“-sharedDB”参数运行 DynamoDB docker。但是,我无法弄清楚我做错了什么
青春有我
相关分类