diff --git a/app/app.py b/app/app.py index 8b95cd85f..308698cd2 100644 --- a/app/app.py +++ b/app/app.py @@ -673,7 +673,9 @@ async def logging_middleware( ) raise HTTPException(status_code=400, detail="No client information") - ip_address = request.client.host + ip_address = str( + request.client.host, + ) # host can be an Object of type IPv4Address or IPv6Address and would be refused by redis port = request.client.port client_address = f"{ip_address}:{port}"