-
Notifications
You must be signed in to change notification settings - Fork 288
Description
Describe the bug
I created a "Basic Custom Engine Agent" template. When running "(Preview) Debug in Copilot (Edge)", the agent is successfully provisioned and deployed, and it appears in the Copilot M365 interface.
However, when creating a new conversation with the agent, a timeout error occurs and the agent returns:
"Sorry, something went wrong. I am unable to give you this response at the moment. I will keep working on your query and respond later."
If I refresh and access the conversation from the left tab, the conversation then appears successful.
See the attached screenshot 1, 2 for illustration.
Output from the Microsoft 365 Agent Toolkit in VSCode shows an error "... error: connect ECONNREFUSED 127.0.0.1:9222", see screenshot 3
To Reproduce
Steps to reproduce the behavior:
- Create a "Basic Custom Engine Agent" template.
- Run "(Preview) Debug in Copilot (Edge)" to provision and deploy the agent. (Screenshot 3)
- Open Copilot M365 and start a new conversation with the agent.
- Observe the timeout error. (Screenshot 1)
- Refresh and access the conversation from the left tab to see the successful response. (Screenshot 2)
Expected behavior
The agent should respond successfully when starting a new conversation, without any timeout error.
VS Code Extension Information (please complete the following information):
- OS: Windows Subsystem for Linux (WSL)
- VSCode Version: 1.101.2
- Extension: Microsoft 365 agents toolkit 6.0.1
CLI Information (please complete the following information):
- OS: Windows Subsystem for Linux (WSL)
- Version: [please specify if different from above]
Additional context
Let me know if you need any more logs or details.


