2025-05-22 09:41:41,891 - INFO - Initialized API Performance Tester 2025-05-22 09:41:41,891 - INFO - Host: http://localhost:5000 2025-05-22 09:41:41,892 - INFO - Concurrency: 10 2025-05-22 09:41:41,892 - INFO - Duration: 30 seconds 2025-05-22 09:41:41,892 - INFO - Running load test... 2025-05-22 09:41:41,892 - INFO - Starting load test with 10 concurrent users for 30 seconds 2025-05-22 09:41:41,892 - INFO - Authenticating test users... 2025-05-22 09:41:41,900 - WARNING - No authentication tokens obtained. Some tests may fail. 2025-05-22 09:42:12,236 - INFO - Load test completed in 30.33 seconds 2025-05-22 09:42:12,236 - INFO - Processed 1005 requests 2025-05-22 09:42:12,239 - INFO - Report saved to test_reports/load_test_report_20250522_094141.json 2025-05-22 09:42:12,662 - INFO - Chart saved to test_reports/load_test_chart_20250522_094141.png 2025-05-22 09:42:12,662 - INFO - Running stress test... 2025-05-22 09:42:12,662 - INFO - Starting stress test to find breaking points 2025-05-22 09:42:12,662 - INFO - Authenticating test users... 2025-05-22 09:42:12,672 - INFO - Testing with 5 concurrent users 2025-05-22 09:42:22,952 - INFO - Concurrency 5: Error rate 100.00%, Avg response time 0.0033s 2025-05-22 09:42:22,952 - INFO - Breaking point detected at 5 concurrent users 2025-05-22 09:42:22,952 - INFO - Error rate: 100.00% 2025-05-22 09:42:22,952 - INFO - Avg response time: 0.0033s 2025-05-22 09:42:22,952 - INFO - Report saved to test_reports/stress_test_report_20250522_094141.json 2025-05-22 09:42:22,952 - INFO - Running endurance test... 2025-05-22 09:42:22,952 - INFO - Starting endurance test for 2 minutes 2025-05-22 09:42:22,952 - INFO - Authenticating test users... 2025-05-22 09:42:22,961 - ERROR - Error running tests: a coroutine was expected, got <_GatheringFuture pending> 2025-05-22 09:42:22,974 - ERROR - Traceback (most recent call last): File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 660, in main endurance_results = await tester.run_endurance_test(endurance_duration) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 494, in run_endurance_test gather_task = asyncio.create_task(asyncio.gather(*tasks)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/tasks.py", line 420, in create_task task = loop.create_task(coro) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/base_events.py", line 458, in create_task task = tasks.Task(coro, loop=self, name=name, context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: a coroutine was expected, got <_GatheringFuture pending> 2025-05-22 09:42:22,975 - ERROR - _GatheringFuture exception was never retrieved future: <_GatheringFuture finished exception=CancelledError()> Traceback (most recent call last): File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 291, in user_simulation result = await self.make_request(session, endpoint_name, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 233, in make_request async with session.get(full_url, headers=headers, timeout=10) as response: File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/client.py", line 1425, in __aenter__ self._resp: _RetType = await self._coro ^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/client.py", line 703, in _request conn = await self._connector.connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 548, in connect proto = await self._create_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 1056, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 1357, in _create_direct_connection hosts = await self._resolve_host(host, port, traces=traces) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 995, in _resolve_host return await asyncio.shield(resolved_host_task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError