Azure-Language-OpenAI-Conversational-Agent-Accelerator icon indicating copy to clipboard operation
Azure-Language-OpenAI-Conversational-Agent-Accelerator copied to clipboard

Failed container app start due to imports

Open carlosmontoliu opened this issue 3 months ago • 1 comments

Launching the app based on the environment variable APP_MODE... Launching app with agents (semantic_kernel_app.py)... INFO: Started server process [893] INFO: Waiting for application startup. ERROR:root:Error during setup: 'AgentsOperations' object has no attribute 'get_agent' ERROR: Traceback (most recent call last): File "/mnt/repo/src/backend/src/semantic_kernel_app.py", line 212, in lifespan await orchestrator.create_agent_group_chat() File "/mnt/repo/src/backend/src/semantic_kernel_orchestrator.py", line 317, in create_agent_group_chat created_agents = await self.initialize_agents() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/repo/src/backend/src/semantic_kernel_orchestrator.py", line 255, in initialize_agents triage_agent_definition = await self.client.agents.get_agent(self.agent_ids["TRIAGE_AGENT_ID"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'AgentsOperations' object has no attribute 'get_agent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/starlette/routing.py", line 694, in lifespan async with self.lifespan_context(app) as maybe_state: ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/contextlib.py", line 210, in aenter return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/mnt/repo/src/backend/src/semantic_kernel_app.py", line 224, in lifespan raise HTTPException(status_code=500, detail="Internal Server Error") fastapi.exceptions.HTTPException: 500: Internal Server Error

ERROR: Application startup failed. Exiting.

carlosmontoliu avatar Nov 12 '25 18:11 carlosmontoliu

App was deployed with devcontainer following instructions

carlosmontoliu avatar Nov 13 '25 13:11 carlosmontoliu