Skip to content

no session ID to check logs with monitor when invoke fails with 500 error #7573

@therealjohn

Description

@therealjohn
<redacted>:~/workspace/test6$ azd ai agent invoke "hey" Agent: github-copilot-invocations (remote, invocations protocol) Input: "hey" Session: (new — server will assign)
Trace ID: 001f204e-2426-473d-98d3-f3e64ac41b95
ERROR: POST https://<redacted>.services.ai.azure.com/api/projects/<redacted>/agents/github-copilot-invocations/endpoint/protocols/invocations?api-version=2025-05-15-preview failed with HTTP 500: 500 Internal Server Error { "error": { "code": "server_error", "message": "An error occurred while processing your request. You can retry your request, or contact us if the error persists. Please include the request ID 4cb3bfb624efa65e754a9c5bd945c0ee in your message.", "type": "error", "details": [], "additionalInfo": { "request_id": "4cb3bfb624efa65e754a9c5bd945c0ee" } } }

To debug this, user tries to do azd ai agent monitor but the session ID was not captured, so it fails.

Investigating the trace ID, the session was created:

"exception.type": SessionException,
"exception.message": Readiness check failed for session 'a30e998...'.,
"exception.stacktrace": Azure.AI.Agents.Services.HostedAgents.Session.Exceptions.SessionException: Readiness check failed for session 'a30e998bc9...h'.

Metadata

Metadata

Assignees

Labels

ext-agentsazure.ai.agents extension

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions