aisearch-openai-rag-audio
aisearch-openai-rag-audio copied to clipboard
CRITICAL | WSServerHandshakeError: 429 message='Invalid response status'
Experiencing the following error in logs after deploying on Azure Cloud using "az up" command in GitHub Codespace.
`2024-11-20T20:08:25.88930 Connecting to the container 'main'...
2024-11-20T20:08:25.94451 Successfully Connected to container: 'main' [Revision: 'capps-backend-xxx--azd-1732091844-6c9995f49b-fnl55', Replica: 'capps-backend-xxx--azd-1732091844'] Closing OpenAI's realtime socket connection. [2024-11-20 20:07:55 +0000] [7] [ERROR] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/app/rtmt.py", line 224, in _websocket_handler await self._forward_messages(ws) File "/app/rtmt.py", line 191, in _forward_messages async with session.ws_connect("/openai/realtime", headers=headers, params=params) as target_ws: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1194, in aenter self._resp = await self._coro ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 848, in _ws_connect raise WSServerHandshakeError( aiohttp.client_exceptions.WSServerHandshakeError: 429, message='Invalid response status', url=URL('https://cog-xxx.openai.azure.com/openai/realtime?api-version=2024-10-01-preview&deployment=gpt-4o-realtime-preview') `