Skip to content

Timeout error when starting new conversation in Copilot M365 when using "(Preview) Debug in Copilot (Edge)" #14210

@Entouanes

Description

@Entouanes

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:

  1. Create a "Basic Custom Engine Agent" template.
  2. Run "(Preview) Debug in Copilot (Edge)" to provision and deploy the agent. (Screenshot 3)
  3. Open Copilot M365 and start a new conversation with the agent.
  4. Observe the timeout error. (Screenshot 1)
  5. 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.

Screenshots
(1)
Image
(2)
Image
(3)
Image

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions