From 6e7bac94cd530a9a39ae74c3d1ddd964d5f7de7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20de=20Maistre?= Date: Tue, 20 Feb 2024 19:01:54 +0100 Subject: [PATCH] Update fastapi to 0.109.2 and fix bug introduced by https://github.com/encode/starlette/pull/2377 --- app/app.py | 1 + requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 8e6016335d..b57bba0b29 100644 --- a/app/app.py +++ b/app/app.py @@ -279,6 +279,7 @@ async def logging_middleware( port = request.client.port client_address = f"{ip_address}:{port}" else: + ip_address = "0.0.0.0" # In case of a test (see https://github.com/encode/starlette/pull/2377) client_address = "unknown" settings: Settings = app.dependency_overrides.get(get_settings, get_settings)() diff --git a/requirements.txt b/requirements.txt index 25f366b298..9197269593 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ alembic==1.13.1 # database migrations -fastapi==0.109.1 +fastapi==0.109.2 Jinja2==3.1.3 # template engine for html files bcrypt==4.0.1 # password hashing pydantic-settings==2.2.1