Ошибка подключения во время Flask Развертывание на AWS с использованием Nginx и gunicorn - PullRequest
0 голосов
/ 04 февраля 2020

Я пытаюсь развернуть простое приложение flask на AWS, используя nginx и gunicorn. Я продолжаю получать

ERROR in app: Exception on /api/v1/rides/1002 [GET]
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 137, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 91, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 81, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /api/v1/db/read (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fe3fde8bba8>: Failed to establish a new connection: [Errno 111] Connection refused',))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /api/v1/db/read (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fe3fde8bba8>: Failed to establish a new connection: [Errno 111] Connection refused',))
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7fe3fde8bba8>: Failed to establish a new connection: [Errno 111] Connection refused

В чем причина ошибки в файле connection.py?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...