Open elvis-mdevo opened 1 month ago
The problem come from helpers/http.py
in line 50
. When we comment this line (TCPConnector), the above error never exist.
async def aiohttp_session() -> ClientSession:
"""
Create an AIOHTTP session.
Object is cached for performance.
Returns a `ClientSession` instance.
"""
global _session # pylint: disable=global-statement
if not _session:
_session = ClientSession(
# Same config as default in the SDK
auto_decompress=False,
cookie_jar=await _aiohttp_cookie_jar(),
trust_env=False,
# Performance
#connector=TCPConnector(resolver=AsyncResolver()),
# Reliability
timeout=ClientTimeout(
connect=5,
total=60,
),
)
return _session
@clemlesne Please could you check this on your side ?
I confirmed it works well on my computer (macOS Sequoia 15.0), a VM (Ubuntu 24.04) and the demo instance (deployed on Azure).
I would need more details from your environment and a reproduction steps to fix that or to justify removing that piece of code (which plays an important role in lowering network calls latencies).
I have just clone the main repository of this project et configure the environment with correct config file. Locally function app start correctly. But an error occur in the console when a make a call.
This happen on your last commit "https://github.com/microsoft/call-center-ai/commit/3241b0e236a75bacf097dd648062a31181020056" =>
Check the log below: