我试图模仿我与moto的S3连接
@mock_s3
def setUp(self):
self.s3_client = S3Client()
self.s3_client.create_bucket(BUCKET_NAME)
但我得到以下错误:
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL:"http://localhost:4567"
or
ConnecConnection refused
Tags:
问题是我在资源调用中指定了一个端点:
删除端点url或仅将其设置为“无”即可解决此问题:
相关问题 更多 >
编程相关推荐