# 4x1-c50-r3-a1-s06: коды ошибок окна k6 — 500:77 ## PostgreSQL 2026-10-11T03:25:06.995980929Z 2026-10-11 03:25:06.995 UTC [7496] FATAL: sorry, too many clients already 2026-10-11T03:25:07.064247346Z 2026-10-11 03:25:07.064 UTC [7497] FATAL: sorry, too many clients already 2026-10-11T03:25:07.087388638Z 2026-10-11 03:25:07.086 UTC [7498] FATAL: sorry, too many clients already 2026-10-11T03:25:07.101964304Z 2026-10-11 03:25:07.101 UTC [7499] FATAL: sorry, too many clients already 2026-10-11T03:25:07.125561554Z 2026-10-11 03:25:07.125 UTC [7500] FATAL: sorry, too many clients already 2026-10-11T03:25:07.146297054Z 2026-10-11 03:25:07.146 UTC [7501] FATAL: sorry, too many clients already 2026-10-11T03:25:07.166424929Z 2026-10-11 03:25:07.166 UTC [7502] FATAL: sorry, too many clients already 2026-10-11T03:25:07.182663054Z 2026-10-11 03:25:07.182 UTC [7503] FATAL: sorry, too many clients already 2026-10-11T03:25:09.133088139Z 2026-10-11 03:25:09.132 UTC [7528] FATAL: sorry, too many clients already 2026-10-11T03:25:11.367920042Z 2026-10-11 03:25:11.367 UTC [7553] FATAL: sorry, too many clients already ## API 2026-10-11T03:25:15.837533003Z {"request_id": "96e09277cbbe492cb5e8dfd00640a61e", "event": "HTTP request completed", "user_id": "983a52ba-08d6-45f0-9654-6caee5a9c8f3", "instance_id": "a289bf1afbf6", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 200, "duration_ms": 3.444, "level": "info", "timestamp": "2026-10-11T03:25:15.837417Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:25:16.474533003Z {"request_id": "4e95606a10ed4c3ca6ef95a933edeee0", "event": "Created message", "user_id": "0ac48f16-a44b-4247-80bf-aa249460fb32", "instance_id": "a289bf1afbf6", "module": "message_service", "method": "send_message", "chat_id": "c5819e10-7f72-4e06-b7ea-c15cb9f9d033", "message_id": "f4fd62e4-3ac7-40a4-ab54-61fcb2a8c086", "text_length": 64, "replayed": false, "level": "info", "timestamp": "2026-10-11T03:25:16.474456Z", "func_name": "send_message", "filename": "message.py", "lineno": 102} 2026-10-11T03:25:16.942358170Z {"request_id": "23201ef758404572a6c70bd56f3952eb", "event": "HTTP request completed", "instance_id": "a289bf1afbf6", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 11.277, "level": "info", "timestamp": "2026-10-11T03:25:16.942168Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:25:16.944614170Z {"request_id": "23201ef758404572a6c70bd56f3952eb", "event": "Exception in ASGI application\n", "instance_id": "a289bf1afbf6", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:16.942353Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:16.944687795Z {"request_id": "be02be4ade62431c8118795b59111e13", "event": "HTTP request completed", "instance_id": "a289bf1afbf6", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 13.019, "level": "info", "timestamp": "2026-10-11T03:25:16.944576Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:25:16.946974295Z {"request_id": "be02be4ade62431c8118795b59111e13", "event": "Exception in ASGI application\n", "instance_id": "a289bf1afbf6", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:16.944709Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:16.950128128Z {"request_id": "14ad880ba34f45d8a37c6af7c8e07805", "event": "HTTP request completed", "instance_id": "a289bf1afbf6", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 16.81, "level": "info", "timestamp": "2026-10-11T03:25:16.949938Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:25:16.952287545Z {"request_id": "14ad880ba34f45d8a37c6af7c8e07805", "event": "Exception in ASGI application\n", "instance_id": "a289bf1afbf6", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:16.950148Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:16.952355711Z {"request_id": "fdf8d70591184371849e5a31f0e93e24", "event": "HTTP request completed", "instance_id": "a289bf1afbf6", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 19.625, "level": "info", "timestamp": "2026-10-11T03:25:16.952261Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:25:16.954410086Z {"request_id": "fdf8d70591184371849e5a31f0e93e24", "event": "Exception in ASGI application\n", "instance_id": "a289bf1afbf6", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:16.952383Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:07.056049554Z {"request_id": "897ac9d9dd8641cc8e5b5d9413e54570", "event": "HTTP request completed", "instance_id": "f80ad2ae990b", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 67.202, "level": "info", "timestamp": "2026-10-11T03:25:07.055833Z", "filename": "request_context.py", "func_name": "__call__", "lineno": 94} 2026-10-11T03:25:07.058215929Z {"request_id": "897ac9d9dd8641cc8e5b5d9413e54570", "event": "Exception in ASGI application\n", "instance_id": "f80ad2ae990b", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:07.056040Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:07.072108596Z {"request_id": "9fc29847036140b1a764eff536adffdb", "event": "HTTP request completed", "instance_id": "f80ad2ae990b", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 31.341, "level": "info", "timestamp": "2026-10-11T03:25:07.071994Z", "filename": "request_context.py", "func_name": "__call__", "lineno": 94} 2026-10-11T03:25:07.074197179Z {"request_id": "9fc29847036140b1a764eff536adffdb", "event": "Exception in ASGI application\n", "instance_id": "f80ad2ae990b", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:07.072139Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:07.095141263Z {"request_id": "646fbcef04b54576814944ca431acf87", "event": "HTTP request completed", "instance_id": "f80ad2ae990b", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 26.271, "level": "info", "timestamp": "2026-10-11T03:25:07.095009Z", "filename": "request_context.py", "func_name": "__call__", "lineno": 94} 2026-10-11T03:25:07.097256929Z {"request_id": "646fbcef04b54576814944ca431acf87", "event": "Exception in ASGI application\n", "instance_id": "f80ad2ae990b", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:07.095152Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:07.110471304Z {"request_id": "2de31a04f19b4e979274447b0362644a", "event": "HTTP request completed", "instance_id": "f80ad2ae990b", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 23.212, "level": "info", "timestamp": "2026-10-11T03:25:07.110352Z", "filename": "request_context.py", "func_name": "__call__", "lineno": 94} 2026-10-11T03:25:07.112500554Z {"request_id": "2de31a04f19b4e979274447b0362644a", "event": "Exception in ASGI application\n", "instance_id": "f80ad2ae990b", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:07.110503Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:07.132871221Z {"request_id": "c8e34e336ea440b0b8160f41aa9f77a2", "event": "HTTP request completed", "instance_id": "f80ad2ae990b", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 26.055, "level": "info", "timestamp": "2026-10-11T03:25:07.132763Z", "filename": "request_context.py", "func_name": "__call__", "lineno": 94} 2026-10-11T03:25:07.135007513Z {"request_id": "c8e34e336ea440b0b8160f41aa9f77a2", "event": "Exception in ASGI application\n", "instance_id": "f80ad2ae990b", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:07.132903Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:13.716363710Z {"request_id": "ba05af28146541d9b4562dc08a61d08d", "event": "HTTP request completed", "instance_id": "81c7ce93c9ff", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 62.494, "level": "info", "timestamp": "2026-10-11T03:25:13.716219Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:25:13.718464293Z {"request_id": "ba05af28146541d9b4562dc08a61d08d", "event": "Exception in ASGI application\n", "instance_id": "81c7ce93c9ff", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:13.716403Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:13.732679877Z {"request_id": "8e9dc0065a4042129f13c2ba690138c4", "event": "HTTP request completed", "instance_id": "81c7ce93c9ff", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 58.696, "level": "info", "timestamp": "2026-10-11T03:25:13.732557Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:25:13.734698752Z {"request_id": "8e9dc0065a4042129f13c2ba690138c4", "event": "Exception in ASGI application\n", "instance_id": "81c7ce93c9ff", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:13.732703Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:13.748693002Z {"request_id": "930d018d15de483d8d97103ad278ddc4", "event": "HTTP request completed", "instance_id": "81c7ce93c9ff", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 20.819, "level": "info", "timestamp": "2026-10-11T03:25:13.748536Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:25:13.750731585Z {"request_id": "930d018d15de483d8d97103ad278ddc4", "event": "Exception in ASGI application\n", "instance_id": "81c7ce93c9ff", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:13.748679Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:13.764587418Z {"request_id": "60d6c47219124cf3bf0d1216b790082c", "event": "HTTP request completed", "instance_id": "81c7ce93c9ff", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 21.557, "level": "info", "timestamp": "2026-10-11T03:25:13.764475Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:25:13.766657960Z {"request_id": "60d6c47219124cf3bf0d1216b790082c", "event": "Exception in ASGI application\n", "instance_id": "81c7ce93c9ff", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:13.764626Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return 2026-10-11T03:25:13.782040460Z {"request_id": "8e5e6f3a092846dabe7af275d3716b0a", "event": "HTTP request completed", "instance_id": "81c7ce93c9ff", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 22.03, "level": "info", "timestamp": "2026-10-11T03:25:13.781886Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:25:13.784081543Z {"request_id": "8e5e6f3a092846dabe7af275d3716b0a", "event": "Exception in ASGI application\n", "instance_id": "81c7ce93c9ff", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:25:13.782083Z", "exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py\", line 376, in create\n connection = await connection_awaitable\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.12/site-packages/asyncpg/connection.py\", line 2443, in connect\n return ## HAProxy 2026-10-11T03:25:07.061090054Z 172.31.0.9:50986 [11/Oct/2026:03:25:06.974] entry api/api-2 0/0/0/86/86 500 330 - - ---- 339/339/66/39/0 0/0 "POST /api/v1/chats/2c23764b-bc3d-464a-84f7-ea75c92814c7/messages HTTP/1.1" 2026-10-11T03:25:07.077688596Z 172.31.0.9:48926 [11/Oct/2026:03:25:06.994] entry api/api-2 0/0/0/82/82 500 330 - - ---- 339/339/72/43/0 0/0 "GET /api/v1/chats/3bbc0ca2-7fbb-4438-afdd-89fcd5735f33/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozYmJjMGNhMi03ZmJiLTQ0MzgtYWZkZC04OWZjZDU3MzVmMzMiLCJ0IjoiMjAyNi0xMC0xMVQwMzoyMTo0OS43Nzc5OTNaIiwiaSI6IjU1MmJhNGYwLTYwZjUtNGM3Yy05Nzk2LWViZDYxYWUzYzkxMSJ9 HTTP/1.1" 2026-10-11T03:25:07.098459263Z 172.31.0.9:49230 [11/Oct/2026:03:25:07.066] entry api/api-2 0/0/0/32/32 500 330 - - ---- 339/339/60/38/0 0/0 "POST /api/v1/chats/cd316552-d17f-44f1-8e99-c54b8f91b56d/messages HTTP/1.1" 2026-10-11T03:25:07.116075763Z 172.31.0.9:48986 [11/Oct/2026:03:25:07.084] entry api/api-2 0/0/0/31/31 500 330 - - ---- 340/339/60/39/0 0/0 "GET /api/v1/chats/3bbc0ca2-7fbb-4438-afdd-89fcd5735f33/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozYmJjMGNhMi03ZmJiLTQ0MzgtYWZkZC04OWZjZDU3MzVmMzMiLCJ0IjoiMjAyNi0xMC0xMVQwMzoyMTo0Ny40Mjc0OTZaIiwiaSI6ImE2NzA2ODE3LTQ5Y2QtNDRmMy1iZjY3LTdmMmNmODRiMjEwYyJ9 HTTP/1.1" 2026-10-11T03:25:07.137479846Z 172.31.0.9:49178 [11/Oct/2026:03:25:07.104] entry api/api-2 0/0/0/33/33 500 330 - - ---- 340/339/54/36/0 0/0 "POST /api/v1/chats/799038dd-5328-44ed-b457-a087d8f83192/messages HTTP/1.1" 2026-10-11T03:25:07.157247388Z 172.31.0.9:49882 [11/Oct/2026:03:25:07.127] entry api/api-2 0/0/0/29/29 500 330 - - ---- 339/339/47/33/0 0/0 "POST /api/v1/chats/ca50dd46-a9aa-4388-8e15-791ab22ca255/messages HTTP/1.1" 2026-10-11T03:25:07.178074513Z 172.31.0.9:49168 [11/Oct/2026:03:25:07.149] entry api/api-2 0/0/0/28/28 500 330 - - ---- 339/339/42/31/0 0/0 "GET /api/v1/chats/3bbc0ca2-7fbb-4438-afdd-89fcd5735f33/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozYmJjMGNhMi03ZmJiLTQ0MzgtYWZkZC04OWZjZDU3MzVmMzMiLCJ0IjoiMjAyNi0xMC0xMVQwMzoyMTo0Ni4wOTYxNDNaIiwiaSI6ImM0MDE4M2IyLWU1YzgtNDA5Yy05NDBiLTgwNTRjZTk3MzI4ZSJ9 HTTP/1.1" 2026-10-11T03:25:07.198424054Z 172.31.0.9:48690 [11/Oct/2026:03:25:07.169] entry api/api-2 0/0/0/28/28 500 330 - - ---- 339/339/34/30/0 0/0 "GET /api/v1/chats/3bbc0ca2-7fbb-4438-afdd-89fcd5735f33/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozYmJjMGNhMi03ZmJiLTQ0MzgtYWZkZC04OWZjZDU3MzVmMzMiLCJ0IjoiMjAyNi0xMC0xMVQwMzoyMTo0Ny40Mjc0OTZaIiwiaSI6ImE2NzA2ODE3LTQ5Y2QtNDRmMy1iZjY3LTdmMmNmODRiMjEwYyJ9 HTTP/1.1" 2026-10-11T03:25:09.196281222Z 172.31.0.9:50084 [11/Oct/2026:03:25:09.106] entry api/api-2 0/0/0/89/89 500 330 - - ---- 339/339/44/41/0 0/0 "GET /api/v1/chats/3bbc0ca2-7fbb-4438-afdd-89fcd5735f33/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozYmJjMGNhMi03ZmJiLTQ0MzgtYWZkZC04OWZjZDU3MzVmMzMiLCJ0IjoiMjAyNi0xMC0xMVQwMzoyMTo1MC4wMDUyODNaIiwiaSI6ImM3NGU0YTg1LWMwOGItNGU2Ny1iMTg1LWIxMjY0MjQ2NjI4MyJ9 HTTP/1.1" 2026-10-11T03:25:11.427612042Z 172.31.0.9:49882 [11/Oct/2026:03:25:11.351] entry api/api-2 0/0/0/76/76 500 330 - - ---- 339/339/86/38/0 0/0 "POST /api/v1/chats/ca50dd46-a9aa-4388-8e15-791ab22ca255/messages HTTP/1.1"