aiohttp.client_exceptions.ClientConnectorCertifica...
# ask-ai
b
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host recivo-52v2q70s.livekit.cloud:443 ssl:True [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
t
Thanks for reaching out, Aman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry to hear you're encountering the
aiohttp.client_exceptions.ClientConnectorCertificateError
. This usually happens due to SSL/TLS certificate verification issues. Let's work through some steps that can help resolve this together: 1. Upgrade Certificates: First, make sure your Python environment has the latest CA certificates by running:
pip install --upgrade certifi
2. Configure aiohttp: You can adjust the SSL settings in your aiohttp client. For example, to temporarily disable SSL verification (please note, this isn’t recommended for production environments):
Copy code
import aiohttp
import ssl

ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE

session = aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=ssl_context))
3. Inject Custom Session: If you’re using LiveKit plugins like Deepgram STT, you can pass the custom session like this:
DeepgramSTT(http_session=session)
4. Corporate Proxy: If you’re behind a corporate proxy, please check that domains such as
*.livekit.cloud
are excluded from deep packet inspection, as this can interfere with SSL verification. Please feel free to reach out if you want me to guide you through any of these steps or if you have any other questions. I’m here to help! Sources: livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/stt_v2.py | Automation & Knowledge Management Tools | livekit/livekit_composite | DeepW... | Zscaler proxy configuration