# 4x1-c50-r2-a1-s03: коды ошибок окна k6 — 500:10 ## PostgreSQL 2026-10-11T03:14:53.012951756Z 2026-10-11 03:14:53.012 UTC [460] FATAL: sorry, too many clients already 2026-10-11T03:14:53.043863089Z 2026-10-11 03:14:53.043 UTC [461] FATAL: sorry, too many clients already 2026-10-11T03:14:53.063537214Z 2026-10-11 03:14:53.063 UTC [462] FATAL: sorry, too many clients already 2026-10-11T03:14:53.087680339Z 2026-10-11 03:14:53.087 UTC [463] FATAL: sorry, too many clients already 2026-10-11T03:14:53.108244173Z 2026-10-11 03:14:53.108 UTC [464] FATAL: sorry, too many clients already 2026-10-11T03:14:54.777842299Z 2026-10-11 03:14:54.776 UTC [472] FATAL: sorry, too many clients already 2026-10-11T03:14:55.310378465Z 2026-10-11 03:14:55.310 UTC [486] FATAL: sorry, too many clients already 2026-10-11T03:14:57.227952633Z 2026-10-11 03:14:57.227 UTC [502] FATAL: sorry, too many clients already 2026-10-11T03:14:58.000512758Z 2026-10-11 03:14:58.000 UTC [515] FATAL: sorry, too many clients already 2026-10-11T03:14:58.067053842Z 2026-10-11 03:14:58.066 UTC [518] FATAL: sorry, too many clients already ## API 2026-10-11T03:15:07.375330055Z {"request_id": "4f2e8ac9f60b472fa12ad58b277a5164", "event": "HTTP request completed", "user_id": "e9957761-7f27-4a06-bef0-55a154dca259", "instance_id": "8c0dd3900beb", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 201, "duration_ms": 5.077, "level": "info", "timestamp": "2026-10-11T03:15:07.375188Z", "func_name": "__call__", "lineno": 94, "filename": "request_context.py"} 2026-10-11T03:14:53.018769839Z {"request_id": "c409a017874042439ce8cf8173a7d5dd", "event": "HTTP request completed", "instance_id": "84889e30feab", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 36.344, "level": "info", "timestamp": "2026-10-11T03:14:53.018609Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:14:53.020868631Z {"request_id": "c409a017874042439ce8cf8173a7d5dd", "event": "Exception in ASGI application\n", "instance_id": "84889e30feab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:14:53.018771Z", "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:14:53.052665423Z {"request_id": "723d90dffd26433b95f821fbd1961d31", "event": "HTTP request completed", "instance_id": "84889e30feab", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 28.47, "level": "info", "timestamp": "2026-10-11T03:14:53.052523Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:14:53.055538298Z {"request_id": "723d90dffd26433b95f821fbd1961d31", "event": "Exception in ASGI application\n", "instance_id": "84889e30feab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:14:53.052709Z", "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:14:53.071912673Z {"request_id": "8506687fc1ef44fc9c9427d831ff6899", "event": "HTTP request completed", "instance_id": "84889e30feab", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 24.836, "level": "info", "timestamp": "2026-10-11T03:14:53.071764Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:14:53.073953923Z {"request_id": "8506687fc1ef44fc9c9427d831ff6899", "event": "Exception in ASGI application\n", "instance_id": "84889e30feab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:14:53.071946Z", "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:14:53.097213089Z {"request_id": "eecfecac9ea44b4db4653ac3a38215b2", "event": "HTTP request completed", "instance_id": "84889e30feab", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 28.822, "level": "info", "timestamp": "2026-10-11T03:14:53.097016Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:14:53.099488006Z {"request_id": "eecfecac9ea44b4db4653ac3a38215b2", "event": "Exception in ASGI application\n", "instance_id": "84889e30feab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:14:53.097238Z", "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:14:53.118013839Z {"request_id": "f95f3bc36f5747d3971af3b2e8f6cad0", "event": "HTTP request completed", "instance_id": "84889e30feab", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 26.633, "level": "info", "timestamp": "2026-10-11T03:14:53.117890Z", "func_name": "__call__", "filename": "request_context.py", "lineno": 94} 2026-10-11T03:14:53.120008173Z {"request_id": "f95f3bc36f5747d3971af3b2e8f6cad0", "event": "Exception in ASGI application\n", "instance_id": "84889e30feab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:14:53.118038Z", "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:14:57.283773175Z {"request_id": "96bab79a9fe841b08c1a2b8a23cb55ae", "event": "HTTP request completed", "instance_id": "1af642cf05ee", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 63.741, "level": "info", "timestamp": "2026-10-11T03:14:57.283599Z", "lineno": 94, "filename": "request_context.py", "func_name": "__call__"} 2026-10-11T03:14:57.288638133Z {"request_id": "96bab79a9fe841b08c1a2b8a23cb55ae", "event": "Exception in ASGI application\n", "instance_id": "1af642cf05ee", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:14:57.283803Z", "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:14:57.298553300Z {"request_id": "e040d61cef23413ea03f3f804009de18", "event": "HTTP request completed", "user_id": "b27fb971-f1bb-4d11-8cc5-71718474bd82", "instance_id": "1af642cf05ee", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 200, "duration_ms": 80.579, "level": "info", "timestamp": "2026-10-11T03:14:57.298438Z", "lineno": 94, "filename": "request_context.py", "func_name": "__call__"} 2026-10-11T03:15:08.703458222Z {"request_id": "6a5bc9d5f65447e8b72abaf316533003", "event": "HTTP request completed", "user_id": "db873ce7-7f88-42b9-a5a5-1fe95fe30fb2", "instance_id": "1af642cf05ee", "middleware": "http", "method": "GET", "path": "/api/v1/users/me", "status": 200, "duration_ms": 8.304, "level": "info", "timestamp": "2026-10-11T03:15:08.703231Z", "lineno": 94, "filename": "request_context.py", "func_name": "__call__"} 2026-10-11T03:14:54.831243965Z {"request_id": "305abc64f22746f791cf01e23fbdbc6f", "event": "HTTP request completed", "instance_id": "f3ce3b87f051", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 61.003, "level": "info", "timestamp": "2026-10-11T03:14:54.831088Z", "lineno": 94, "func_name": "__call__", "filename": "request_context.py"} 2026-10-11T03:14:54.835923715Z {"request_id": "305abc64f22746f791cf01e23fbdbc6f", "event": "Exception in ASGI application\n", "instance_id": "f3ce3b87f051", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:14:54.831281Z", "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:14:53.021748798Z 172.31.0.9:57076 [11/Oct/2026:03:14:52.947] entry api/api-1 0/0/0/73/73 500 330 - - ---- 323/323/58/31/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozOS4zMjI3MTFaIiwiaSI6ImM4Mzg1ODMxLTdmYmQtNDA4Ny1iNjZjLTMwMGRiNzM4MzQ3ZSJ9 HTTP/1.1" 2026-10-11T03:14:53.057725964Z 172.31.0.9:39578 [11/Oct/2026:03:14:53.019] entry api/api-1 0/0/0/38/38 500 330 - - ---- 324/323/54/32/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozOS40OTM4MjhaIiwiaSI6IjBhNTU0YWUxLWY0MWYtNDBkNS1hZTc2LTQ2YTg1OGNjODhlYiJ9 HTTP/1.1" 2026-10-11T03:14:53.076395839Z 172.31.0.9:40620 [11/Oct/2026:03:14:53.043] entry api/api-1 0/0/0/32/32 500 330 - - ---- 323/323/48/32/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozMy4wNjA4MTNaIiwiaSI6IjM5YjFlNWE1LTk5NjktNGE2Ny1hYjUwLWViN2I1MGQ2ZDljYiJ9 HTTP/1.1" 2026-10-11T03:14:53.101354923Z 172.31.0.9:40968 [11/Oct/2026:03:14:53.065] entry api/api-1 0/0/0/35/35 500 330 - - ---- 323/323/45/32/0 0/0 "POST /api/v1/chats/b6eee5d3-7f8a-448c-b50a-80e86fe32825/messages HTTP/1.1" 2026-10-11T03:14:53.121457381Z 172.31.0.9:57640 [11/Oct/2026:03:14:53.087] entry api/api-1 0/0/0/33/33 500 330 - - ---- 323/323/29/25/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozOC41NTEyNDdaIiwiaSI6IjdmMmRlMDhjLTU2ZTMtNDk1ZC1hNWJiLTU5ZDNmODM4OGRlYiJ9 HTTP/1.1" 2026-10-11T03:14:54.839049799Z 172.31.0.9:40912 [11/Oct/2026:03:14:54.751] entry api/api-2 0/0/0/86/86 500 330 - - ---- 323/323/42/38/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozOC44NzUxMzFaIiwiaSI6ImE4ZDg3YjZiLWEzMDctNDI3YS1hYmY3LTNjMDQxNGVkMmJlYyJ9 HTTP/1.1" 2026-10-11T03:14:55.371236299Z 172.31.0.9:39980 [11/Oct/2026:03:14:55.296] entry api/api-1 0/0/0/74/74 500 330 - - ---- 323/323/39/37/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozMy41NzUzMjRaIiwiaSI6ImFjNTI4YmE0LTM1MWQtNDg0Yy04ODgyLTY2YjU2YzYzMDU3NiJ9 HTTP/1.1" 2026-10-11T03:14:57.292218716Z 172.31.0.9:41516 [11/Oct/2026:03:14:57.203] entry api/api-4 0/0/0/88/88 500 330 - - ---- 323/323/42/38/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozMi45OTk2NDJaIiwiaSI6IjE5YjZmNWM5LWJiMWEtNGI2Ny05YjhhLTUzOGNiOTAxODZhOCJ9 HTTP/1.1" 2026-10-11T03:14:58.060556133Z 172.31.0.9:41534 [11/Oct/2026:03:14:57.983] entry api/api-1 0/0/0/76/76 500 330 - - ---- 323/323/47/36/0 0/0 "GET /api/v1/chats/2c6ee1ba-b8e6-43d3-ba54-38fedc229668/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDoyYzZlZTFiYS1iOGU2LTQzZDMtYmE1NC0zOGZlZGMyMjk2NjgiLCJ0IjoiMjAyNi0xMC0xMVQwMzoxMzozNy43ODA0OTBaIiwiaSI6IjllZTE2MzcwLWQyODctNDAzNy1hYmE2LTY5NmYxZGEyZjI3ZiJ9 HTTP/1.1" 2026-10-11T03:14:58.078330050Z 172.31.0.9:41274 [11/Oct/2026:03:14:58.000] entry api/api-1 0/0/0/78/78 500 330 - - ---- 323/323/39/33/0 0/0 "POST /api/v1/chats/1cfb186d-82d5-4b48-a928-e780aa6a231c/messages HTTP/1.1"