Skip to content

Issue with azure open ai resource #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arunpandi1 opened this issue Apr 17, 2025 · 2 comments
Open

Issue with azure open ai resource #97

arunpandi1 opened this issue Apr 17, 2025 · 2 comments

Comments

@arunpandi1
Copy link

Hi.

we have got this issue. Whenever the page load in local environment I got this issue. I followed the same from the github repo.

File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request resp = await request_handler(request) File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\web_app.py", line 543, in _handle resp = await handler(request) File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\app\backend\rtmt.py", line 226, in _websocket_handler await self._forward_messages(ws) File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\app\backend\rtmt.py", line 193, in _forward_messages async with session.ws_connect("/openai/realtime", headers=headers, params=params) as target_ws: File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\client.py", line 1194, in __aenter__ self._resp = await self._coro File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\client.py", line 848, in _ws_connect raise WSServerHandshakeError( aiohttp.client_exceptions.WSServerHandshakeError: 401, message='Invalid response status', url=URL('https://xxxx.openai.azure.com/openai/realtime?api-version=2024-10-01-preview&deployment=gpt-4o-mini-realtime-preview')

@OsamaAbbas91
Copy link

same!

@bhavyajoshi-mahindra
Copy link

Hi.

we have got this issue. Whenever the page load in local environment I got this issue. I followed the same from the github repo.

File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request resp = await request_handler(request) File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\web_app.py", line 543, in _handle resp = await handler(request) File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\app\backend\rtmt.py", line 226, in _websocket_handler await self._forward_messages(ws) File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\app\backend\rtmt.py", line 193, in _forward_messages async with session.ws_connect("/openai/realtime", headers=headers, params=params) as target_ws: File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\client.py", line 1194, in __aenter__ self._resp = await self._coro File "C:\MyWorkspace\Python\aisearch-openai-rag-audio-main\.venv\lib\site-packages\aiohttp\client.py", line 848, in _ws_connect raise WSServerHandshakeError( aiohttp.client_exceptions.WSServerHandshakeError: 401, message='Invalid response status', url=URL('https://xxxx.openai.azure.com/openai/realtime?api-version=2024-10-01-preview&deployment=gpt-4o-mini-realtime-preview')

I solve this by replacing the variable name in .env from AZURE_OPENAI_KEY to AZURE_OPENAI_API_REALTIME_KEY and updated the same in the app.py code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants