# 4x1-c50-r1-a1-s03: коды ошибок окна k6 — 500:25 ## PostgreSQL 2026-10-11T03:07:49.296315504Z 2026-10-11 03:07:49.296 UTC [459] FATAL: sorry, too many clients already 2026-10-11T03:07:49.333154421Z 2026-10-11 03:07:49.333 UTC [460] FATAL: sorry, too many clients already 2026-10-11T03:07:49.352504129Z 2026-10-11 03:07:49.352 UTC [461] FATAL: sorry, too many clients already 2026-10-11T03:07:51.777433255Z 2026-10-11 03:07:51.777 UTC [487] FATAL: sorry, too many clients already 2026-10-11T03:07:51.847093255Z 2026-10-11 03:07:51.847 UTC [489] FATAL: sorry, too many clients already 2026-10-11T03:07:51.866430964Z 2026-10-11 03:07:51.865 UTC [490] FATAL: sorry, too many clients already 2026-10-11T03:07:51.881454172Z 2026-10-11 03:07:51.881 UTC [491] FATAL: sorry, too many clients already 2026-10-11T03:07:52.006367172Z 2026-10-11 03:07:52.005 UTC [497] FATAL: sorry, too many clients already 2026-10-11T03:07:54.458229882Z 2026-10-11 03:07:54.458 UTC [519] FATAL: sorry, too many clients already 2026-10-11T03:07:56.978210091Z 2026-10-11 03:07:56.978 UTC [542] FATAL: sorry, too many clients already ## API 2026-10-11T03:07:51.832554880Z {"request_id": "9a8cfbb194524b33a27d65df930bc22b", "event": "HTTP request completed", "instance_id": "ed7d23bb6b30", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 59.862, "level": "info", "timestamp": "2026-10-11T03:07:51.832330Z", "func_name": "__call__", "lineno": 94, "filename": "request_context.py"} 2026-10-11T03:07:51.837642880Z {"request_id": "9a8cfbb194524b33a27d65df930bc22b", "event": "Exception in ASGI application\n", "instance_id": "ed7d23bb6b30", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:51.832578Z", "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:07:51.853981880Z {"request_id": "32521885338f4ca3b932321aaa2ba200", "event": "HTTP request completed", "instance_id": "ed7d23bb6b30", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 30.555, "level": "info", "timestamp": "2026-10-11T03:07:51.853863Z", "func_name": "__call__", "lineno": 94, "filename": "request_context.py"} 2026-10-11T03:07:51.856016214Z {"request_id": "32521885338f4ca3b932321aaa2ba200", "event": "Exception in ASGI application\n", "instance_id": "ed7d23bb6b30", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:51.854042Z", "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:07:51.872921797Z {"request_id": "f2f806b1f2ca44f5bc4e9f08cdb6c017", "event": "HTTP request completed", "instance_id": "ed7d23bb6b30", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 21.778, "level": "info", "timestamp": "2026-10-11T03:07:51.872819Z", "func_name": "__call__", "lineno": 94, "filename": "request_context.py"} 2026-10-11T03:07:51.875063880Z {"request_id": "f2f806b1f2ca44f5bc4e9f08cdb6c017", "event": "Exception in ASGI application\n", "instance_id": "ed7d23bb6b30", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:51.872967Z", "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:07:51.890853380Z {"request_id": "1640c1dbc98a436b94539809419043cd", "event": "HTTP request completed", "instance_id": "ed7d23bb6b30", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 20.619, "level": "info", "timestamp": "2026-10-11T03:07:51.890666Z", "func_name": "__call__", "lineno": 94, "filename": "request_context.py"} 2026-10-11T03:07:51.892848297Z {"request_id": "1640c1dbc98a436b94539809419043cd", "event": "Exception in ASGI application\n", "instance_id": "ed7d23bb6b30", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:51.890856Z", "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:07:53.155330048Z {"request_id": "16b171fc9d754e18aeb830094c5ddb36", "event": "Created message", "user_id": "885197d7-8dbc-47a2-81e3-82bf753ae799", "instance_id": "ed7d23bb6b30", "module": "message_service", "method": "send_message", "chat_id": "dd833eb3-5318-41dc-ab9b-dc9a212bb01f", "message_id": "1d981c61-d83d-4862-8584-275d05533d42", "text_length": 64, "replayed": false, "level": "info", "timestamp": "2026-10-11T03:07:53.155129Z", "func_name": "send_message", "lineno": 102, "filename": "message.py"} 2026-10-11T03:07:57.132353300Z {"request_id": "c7c2a739d037496b8f563e589c3f6aa3", "event": "HTTP request completed", "user_id": "193111f8-2172-4963-92c2-bc00c9f86f24", "instance_id": "ed7d23bb6b30", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 201, "duration_ms": 75.143, "level": "info", "timestamp": "2026-10-11T03:07:57.132194Z", "func_name": "__call__", "lineno": 94, "filename": "request_context.py"} 2026-10-11T03:07:54.853480049Z {"request_id": "503d6749d8d649f6a0c2eaff048c3ab9", "event": "Created message", "user_id": "a67d0bf6-e3b3-4bc2-90b2-427944d3aa52", "instance_id": "81428c143e41", "module": "message_service", "method": "send_message", "chat_id": "371814a0-416a-49e8-a5eb-2129af6a46dd", "message_id": "d054d337-590a-412f-9d89-758479348b09", "text_length": 64, "replayed": false, "level": "info", "timestamp": "2026-10-11T03:07:54.853300Z", "filename": "message.py", "func_name": "send_message", "lineno": 102} 2026-10-11T03:07:56.675330091Z {"request_id": "1cf81a764e7f4554918fba9ed44971e8", "event": "HTTP request completed", "user_id": "885197d7-8dbc-47a2-81e3-82bf753ae799", "instance_id": "81428c143e41", "middleware": "http", "method": "GET", "path": "/api/v1/users/me", "status": 200, "duration_ms": 0.98, "level": "info", "timestamp": "2026-10-11T03:07:56.675201Z", "filename": "request_context.py", "func_name": "__call__", "lineno": 94} 2026-10-11T03:07:49.316140671Z {"request_id": "1c81dc645ea14f359d28df9277a9dd78", "event": "HTTP request completed", "instance_id": "b80ab97340ab", "middleware": "http", "method": "GET", "path": "/api/v1/users/me", "status": 500, "duration_ms": 48.149, "level": "info", "timestamp": "2026-10-11T03:07:49.316011Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:07:49.321880546Z {"request_id": "1c81dc645ea14f359d28df9277a9dd78", "event": "Exception in ASGI application\n", "instance_id": "b80ab97340ab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:49.316192Z", "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:07:49.339639171Z {"request_id": "7419a943ba88405bba8ed3c581944895", "event": "HTTP request completed", "instance_id": "b80ab97340ab", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 28.625, "level": "info", "timestamp": "2026-10-11T03:07:49.339493Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:07:49.341780171Z {"request_id": "7419a943ba88405bba8ed3c581944895", "event": "Exception in ASGI application\n", "instance_id": "b80ab97340ab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:49.339702Z", "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:07:49.359261463Z {"request_id": "8f54940fdac14364a18dc0480a7d3ef4", "event": "HTTP request completed", "instance_id": "b80ab97340ab", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 21.76, "level": "info", "timestamp": "2026-10-11T03:07:49.359112Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:07:49.361338879Z {"request_id": "8f54940fdac14364a18dc0480a7d3ef4", "event": "Exception in ASGI application\n", "instance_id": "b80ab97340ab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:49.359252Z", "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:07:54.512646590Z {"request_id": "498f38ebeb274885ab036c96cd196bba", "event": "HTTP request completed", "instance_id": "b80ab97340ab", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 61.365, "level": "info", "timestamp": "2026-10-11T03:07:54.512476Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:07:54.514633007Z {"request_id": "498f38ebeb274885ab036c96cd196bba", "event": "Exception in ASGI application\n", "instance_id": "b80ab97340ab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:54.512669Z", "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:07:57.034565633Z {"request_id": "32087e405155489eb49db3a4fe00e24e", "event": "HTTP request completed", "instance_id": "b80ab97340ab", "middleware": "http", "method": "GET", "path": "/api/v1/chats/{chat_id}/messages", "status": 500, "duration_ms": 61.443, "level": "info", "timestamp": "2026-10-11T03:07:57.034387Z", "filename": "request_context.py", "lineno": 94, "func_name": "__call__"} 2026-10-11T03:07:57.036546425Z {"request_id": "32087e405155489eb49db3a4fe00e24e", "event": "Exception in ASGI application\n", "instance_id": "b80ab97340ab", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:57.034595Z", "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:07:50.185330088Z {"request_id": "1841302b66e1444d99154302827a566e", "event": "HTTP request completed", "user_id": "193111f8-2172-4963-92c2-bc00c9f86f24", "instance_id": "06f4d4fcb468", "middleware": "http", "method": "POST", "path": "/api/v1/chats/{chat_id}/messages", "status": 201, "duration_ms": 2.96, "level": "info", "timestamp": "2026-10-11T03:07:50.185246Z", "lineno": 94, "func_name": "__call__", "filename": "request_context.py"} 2026-10-11T03:07:52.062499422Z {"request_id": "07de8e9a14ce4d7483e25bdf18892b70", "event": "HTTP request completed", "instance_id": "06f4d4fcb468", "middleware": "http", "method": "GET", "path": "/api/v1/users/me", "status": 500, "duration_ms": 63.161, "level": "info", "timestamp": "2026-10-11T03:07:52.062315Z", "lineno": 94, "func_name": "__call__", "filename": "request_context.py"} 2026-10-11T03:07:52.067520464Z {"request_id": "07de8e9a14ce4d7483e25bdf18892b70", "event": "Exception in ASGI application\n", "instance_id": "06f4d4fcb468", "level": "error", "logger": "uvicorn.error", "timestamp": "2026-10-11T03:07:52.062513Z", "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:07:49.324943046Z 172.31.0.9:56002 [11/Oct/2026:03:07:49.242] entry api/api-2 0/0/0/82/82 500 330 - - ---- 323/323/53/34/0 0/0 "GET /api/v1/users/me HTTP/1.1" 2026-10-11T03:07:49.344070713Z 172.31.0.9:55984 [11/Oct/2026:03:07:49.300] entry api/api-2 0/0/0/43/43 500 330 - - ---- 323/323/44/31/0 0/0 "GET /api/v1/chats/321c6cc2-2608-46ac-b30f-cb6f2e6687ae/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozMjFjNmNjMi0yNjA4LTQ2YWMtYjMwZi1jYjZmMmU2Njg3YWUiLCJ0IjoiMjAyNi0xMC0xMVQwMzowNjozMi4zMDQyMjNaIiwiaSI6ImYwZTJlMWViLWQwOGYtNGI3NC1iYWMzLWM2NzEwZjc0MzFkNyJ9 HTTP/1.1" 2026-10-11T03:07:49.364349129Z 172.31.0.9:55076 [11/Oct/2026:03:07:49.335] entry api/api-2 0/0/0/28/28 500 330 - - ---- 323/323/32/27/0 0/0 "POST /api/v1/chats/371814a0-416a-49e8-a5eb-2129af6a46dd/messages HTTP/1.1" 2026-10-11T03:07:51.839947505Z 172.31.0.9:54570 [11/Oct/2026:03:07:51.763] entry api/api-1 0/0/0/76/76 500 330 - - ---- 324/323/54/38/0 0/0 "GET /api/v1/chats/321c6cc2-2608-46ac-b30f-cb6f2e6687ae/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozMjFjNmNjMi0yNjA4LTQ2YWMtYjMwZi1jYjZmMmU2Njg3YWUiLCJ0IjoiMjAyNi0xMC0xMVQwMzowNjozNS4zMTA4NjFaIiwiaSI6IjcyZTc0ZmEyLTViMDMtNGNjZS04YTVlLTRiOTUzMWU2MzhjNSJ9 HTTP/1.1" 2026-10-11T03:07:51.857705922Z 172.31.0.9:54994 [11/Oct/2026:03:07:51.780] entry api/api-1 0/0/0/77/77 500 330 - - ---- 324/323/47/33/0 0/0 "GET /api/v1/chats/321c6cc2-2608-46ac-b30f-cb6f2e6687ae/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozMjFjNmNjMi0yNjA4LTQ2YWMtYjMwZi1jYjZmMmU2Njg3YWUiLCJ0IjoiMjAyNi0xMC0xMVQwMzowNjozNC42ODY5NzJaIiwiaSI6ImQxNWM4YzdlLTk1ZTktNDkwMC04MDUyLTYzM2ZmYjViYTRjZSJ9 HTTP/1.1" 2026-10-11T03:07:51.877073505Z 172.31.0.9:56260 [11/Oct/2026:03:07:51.848] entry api/api-1 0/0/0/28/28 500 330 - - ---- 324/323/39/29/0 0/0 "GET /api/v1/chats/321c6cc2-2608-46ac-b30f-cb6f2e6687ae/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozMjFjNmNjMi0yNjA4LTQ2YWMtYjMwZi1jYjZmMmU2Njg3YWUiLCJ0IjoiMjAyNi0xMC0xMVQwMzowNjozNC4zODc0MTFaIiwiaSI6IjljMTY0MmVmLWIzNTgtNDNkZC1hMjIxLTU5YTU3Y2Y0ZDYwZiJ9 HTTP/1.1" 2026-10-11T03:07:51.897168130Z 172.31.0.9:56414 [11/Oct/2026:03:07:51.867] entry api/api-1 0/0/0/29/29 500 330 - - ---- 323/323/35/30/0 0/0 "GET /api/v1/chats/321c6cc2-2608-46ac-b30f-cb6f2e6687ae/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozMjFjNmNjMi0yNjA4LTQ2YWMtYjMwZi1jYjZmMmU2Njg3YWUiLCJ0IjoiMjAyNi0xMC0xMVQwMzowNjoyOS42ODQwMjZaIiwiaSI6IjZiODA1OGRiLTkwMmUtNGM3Zi05ZDIyLTI1MzU3NjhlOTdjMCJ9 HTTP/1.1" 2026-10-11T03:07:52.069255172Z 172.31.0.9:53704 [11/Oct/2026:03:07:51.996] entry api/api-4 0/0/0/73/73 500 330 - - ---- 323/323/37/35/0 0/0 "GET /api/v1/users/me HTTP/1.1" 2026-10-11T03:07:54.516668465Z 172.31.0.9:53982 [11/Oct/2026:03:07:54.441] entry api/api-2 0/0/0/75/75 500 330 - - ---- 323/323/36/34/0 0/0 "GET /api/v1/chats/321c6cc2-2608-46ac-b30f-cb6f2e6687ae/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozMjFjNmNjMi0yNjA4LTQ2YWMtYjMwZi1jYjZmMmU2Njg3YWUiLCJ0IjoiMjAyNi0xMC0xMVQwMzowNjozMi45Njk5ODVaIiwiaSI6IjFiOGU2ZmVjLWFmNjYtNDJmNS05NzVkLTI4MGJhNDA4MzU4OCJ9 HTTP/1.1" 2026-10-11T03:07:57.039164758Z 172.31.0.9:56318 [11/Oct/2026:03:07:56.967] entry api/api-2 0/0/0/71/71 500 330 - - ---- 323/323/72/36/0 0/0 "GET /api/v1/chats/321c6cc2-2608-46ac-b30f-cb6f2e6687ae/messages?limit=50&cursor=eyJ2IjoxLCJzIjoiY2hhdDozMjFjNmNjMi0yNjA4LTQ2YWMtYjMwZi1jYjZmMmU2Njg3YWUiLCJ0IjoiMjAyNi0xMC0xMVQwMzowNjozMS41NzgzMjNaIiwiaSI6IjljNjEwY2E5LTMzMzItNDE2ZC1iZDIzLTllMWE1MzZmMzA5MyJ9 HTTP/1.1"