Skip to content

Python: Bug: ClientConnectorDNSError when connecting to Azure AI Agent endpoint in Semantic Kernel 1.31.0 #12266

Closed
@Pavan-Microsoft

Description

@Pavan-Microsoft

Describe the bug
I have successfully upgraded my semnatic kernel version to 1.31.0, and when trying to run Getting below error:

aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host kmtest2345tsample2-aiservices.services.ai.azure.com:443 ssl:default [getaddrinfo failed]

To Reproduce
Steps to reproduce the behavior:
try to reproduce the following guide: python/samples/getting_started_with_agents/azure_ai_agent/step2_azure_ai_agent_plugin.py

Added below environment variables:
AZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME=gpt-4o-mini
AZURE_AI_AGENT_ENDPOINT=https://.services.ai.azure.com/api/projects/

Added Azure AI Developer role as well

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Platform

  • Language: Python 3.11.9
  • AI model: GPT-4o-mini
  • IDE: VS Code
  • OS: Windows

Metadata

Metadata

Assignees

Labels

agentsbugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions