Created At: 2026-11-18T09:42:41Z Completed At: 2026-11-18T09:42:42Z Command exited with code 0. Command output: | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 412, in _handle_exception | self._handle_exception_no_connection(self.dbapi, error) | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 856, in _handle_exception_no_connection | super()._handle_exception_no_connection(dbapi, error) | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 409, in _handle_exception_no_connection | raise error.with_traceback(exc_info[2]) | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 877, in ping | _ = await_(self._async_ping()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/util/concurrency.py", line 161, in await_ | raise exc.MissingGreenlet( | sqlalchemy.exc.MissingGreenlet: greenlet_spawn has not been called; can't call await_() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/21/xd2s) +------------------------------------ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/telegram-saas/tests/integration/test_marketplace_api.py", line 83, in test_marketplace_api_full_lifecycle_and_tenant_isolation install_resp = await async_client.post( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/telegram-saas/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1859, in post return await self.request( -- File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 412, in _handle_exception self._handle_exception_no_connection(self.dbapi, error) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 856, in _handle_exception_no_connection super()._handle_exception_no_connection(dbapi, error) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 409, in _handle_exception_no_connection raise error.with_traceback(exc_info[2]) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 877, in ping _ = await_(self._async_ping()) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/util/concurrency.py", line 161, in await_ raise exc.MissingGreenlet( sqlalchemy.exc.MissingGreenlet: greenlet_spawn has not been called; can't call await_() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/21/xd2s) The above exception was the direct cause of the following exception: async_client = db_session = @pytest.mark.asyncio async def test_marketplace_api_full_lifecycle_and_tenant_isolation( async_client: AsyncClient, db_session: AsyncSession ): -- :func:`await_` calls cannot be nested. :param awaitable: The coroutine to call. """ # this is called in the context greenlet while running fn current = _concurrency_shim.getcurrent() if not getattr(current, "__sqlalchemy_greenlet_provider__", False): _safe_cancel_awaitable(awaitable) > raise exc.MissingGreenlet( "greenlet_spawn has not been called; can't call await_() " "here. Was IO attempted in an unexpected place?" ) E sqlalchemy.exc.MissingGreenlet: greenlet_spawn has not been called; can't call await_() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/21/xd2s) .venv/lib/python3.12/site-packages/sqlalchemy/util/concurrency.py:161: MissingGreenlet ----------------------------- Captured stdout call ----------------------------- 2026-11-18 09:42:34 [info ] dispatching_domain_event event_id=aa86dac4-2fd3-4b83-952e-89f0724cdaca event_type=UserRegisteredEvent handlers_count=0 2026-11-18 09:42:34 [info ] dispatching_domain_event event_id=83adaa61-7c7d-408a-9cab-cf2d12578c1c event_type=TenantCreatedEvent handlers_count=0 2026-11-18 09:42:35 [error ] unhandled_server_error error="greenlet_spawn has not been called; can't call await_() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/21/xd2s)" method=POST path=/api/v1/marketplace/install + Exception Group Traceback (most recent call last): | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/starlette/_utils.py", line 104, in create_collapsing_task_group | async with anyio.create_task_group() as tg: | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 871, in __aexit__ | raise BaseExceptionGroup( | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) -- | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 412, in _handle_exception | self._handle_exception_no_connection(self.dbapi, error) | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 856, in _handle_exception_no_connection | super()._handle_exception_no_connection(dbapi, error) | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 409, in _handle_exception_no_connection | raise error.with_traceback(exc_info[2]) | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 877, in ping | _ = await_(self._async_ping()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/util/concurrency.py", line 161, in await_ | raise exc.MissingGreenlet( | sqlalchemy.exc.MissingGreenlet: greenlet_spawn has not been called; can't call await_() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/21/xd2s) +------------------------------------ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/telegram-saas/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/fastapi/telemetry/_asgi.py", line 151, in __call__ await self.app(scope, receive, send) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/starlette/middleware/base.py", line 203, in __call__ -- File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 412, in _handle_exception self._handle_exception_no_connection(self.dbapi, error) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 856, in _handle_exception_no_connection super()._handle_exception_no_connection(dbapi, error) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/connectors/asyncio.py", line 409, in _handle_exception_no_connection raise error.with_traceback(exc_info[2]) File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 877, in ping _ = await_(self._async_ping()) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/telegram-saas/.venv/lib/python3.12/site-packages/sqlalchemy/util/concurrency.py", line 161, in await_ raise exc.MissingGreenlet( sqlalchemy.exc.MissingGreenlet: greenlet_spawn has not been called; can't call await_() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/21/xd2s) =============================== warnings summary =============================== tests/unit/test_marketplace.py:5 /root/telegram-saas/tests/unit/test_marketplace.py:5: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.unit tests/unit/test_marketplace.py:51 /root/telegram-saas/tests/unit/test_marketplace.py:51: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.unit -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html