-
Notifications
You must be signed in to change notification settings - Fork 278
Description
Describe the bug
We created a sample Teams Agent app using M365 Agents Toolkit from template path
M365 Toolkit -> Create a New Agent/App -> Teams Agents and Apps -> General Teams Agent
We have Custom upload enabled with Copilot license. We have created a simple test Azure OpenAI Agent and used its key, end point and deployment name to create a sample solution to test it and it gave the below error while debugging in Teams in Egde and post a query to agent.
[ERROR] @teams/app/http/jwt-validation-middleware/jwt-validator
Failed to get signing key: {
"code": "UNABLE_TO_GET_ISSUER_CERT_LOCALLY"
}
JWT verification failed: {
"name": "JsonWebTokenError",
"message": "error in secret or public key callback: unable to get local issuer certificate"
}
We tried installing certificate by following below blog and adding the commented code mentioned in m365agents.local.yml but still getting same error.
To Reproduce
Steps to reproduce the behavior:
- Install M365 Agents Tookit in VS Code
- Create a simple test Azure OpenAI Agent
- Create a sample template using M365 Toolkit -> Create a New Agent/App -> Teams Agents and Apps -> General Teams Agent
- Provide Key, endpoint URL and deployment name.
- Run the solution for debugging in Teams in Egde/Chrome
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
VS Code Extension Information (please complete the following information):
- OS: Windows 11
- Version 23H2
CLI Information (please complete the following information):
- OS: Windows 11
- Version 23H2
Additional context
M365 Agents Toolkit version: 6.4.1
Node version: 18.17.1
VS Code Version: 1.106.1
Azure Open AI GPT Model: gpt-4o-mini