bulky-fish-79784
07/14/2025, 5:22 PMraise WSServerHandshakeError(
aiohttp.client_exceptions.WSServerHandshakeError: 401, message='Invalid response status', url='<wss://voice-bot-914ffmrd.livekit.cloud/agent>'
2025-07-14 13:20:15,155 - livekit.agents - WARNING - failed to connect to livekit, retrying in 10s
tall-airline-16756
07/14/2025, 5:22 PMtall-airline-16756
07/14/2025, 5:23 PMWSServerHandshakeError 401
indicates an authentication failure when connecting to your LiveKit cloud WebSocket endpoint. This is most commonly caused by one of the following:
• Missing or incorrect API credentials (API key or secret)
• Expired or improperly generated access tokens
• Incorrectly formatted authorization headers
To resolve this, please verify the following:
Sources: Authentication | LiveKit Docs | livekit-agents/livekit/agents/worker.py | Accepting incoming calls | LiveKit Docs | Web and mobile frontends | LiveKit Docsbulky-fish-79784
07/14/2025, 5:24 PMtall-airline-16756
07/14/2025, 5:25 PM