Skip to content
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

Websocket Connection Failing on Chrome with error (Error : Could not connect to "wss://api.openai.com/v1/realtime). #513

Open
iwishceo opened this issue Jan 15, 2025 · 15 comments

Comments

@iwishceo
Copy link

We took a pull of websocket branch a few days back and it was working. Today, we took the pull again and it is not working on Chrome browser. We get the following error: (Error : Could not connect to "wss://api.openai.com/v1/realtime).

Surprisingly, the code works just fine on Safari.

Please provide guidance.

@invens-devuser1
Copy link

Same here.

@sivaprasad2507
Copy link

Same issue here too

@QuicksilverSlick
Copy link

@iwishceo , @invens-devuser1 @sivaprasad2507

Are you using an ephemeral token?

@sivaprasad2507
Copy link

sivaprasad2507 commented Jan 19, 2025

No Im not using ephermeral token. But tested by the both ephermeral token and openAI key. Both showing same error.

Does the repo still works for you?

@iwishceo
Copy link
Author

iwishceo commented Jan 19, 2025

This problem has come back. And no the repo is not working for us.

@sivaprasad2507
Copy link

sivaprasad2507 commented Jan 20, 2025

Find the code Im using,

import { RealtimeClient } from '@openai/realtime-api-beta';

const clientRef = ref<RealtimeClient | null>(null);
clientRef.value = new RealtimeClient({ 
    apiKey: import.meta.env.VITE_APP_OPENAI_KEY,
    dangerouslyAllowAPIKeyInBrowser: true
  });

Any one please update here if issue got solved.

@sivaprasad2507
Copy link

Seems its working now. Really strange!

@iwishceo
Copy link
Author

Seems its working now. Really strange!

Not working for us. I think this is a node issue on rotation.

@g-mathur
Copy link

g-mathur commented Jan 20, 2025

I tried Realtime api on both Websocket & WebRTC, both are not working since 18th Jan. Till 17th Jan, it was working flawlessly. I tried on Chrome, Firefox, Safari. Still the issue exist.

@iwishceo
Copy link
Author

I tried Realtime api on both Websocket & WebRTC, both are not working since 18th Jan. Till 17th Jan, it was working flawlessly. I tried on Chrome, Firefox, Safari. Still the issue exist.

Can you please go to this link and share that? The more people raising the issue the better fo rus.

https://community.openai.com/t/is-anyone-experiencing-websocket-realtime-error-on-chrome-browser/1091793/48

@g-mathur
Copy link

I tried Realtime api on both Websocket & WebRTC, both are not working since 18th Jan. Till 17th Jan, it was working flawlessly. I tried on Chrome, Firefox, Safari. Still the issue exist.

Can you please go to this link and share that? The more people raising the issue the better fo rus.

https://community.openai.com/t/is-anyone-experiencing-websocket-realtime-error-on-chrome-browser/1091793/48

Thanks. Updated it on the community.

@a-kliuieva
Copy link

We have same issue no matter what browser we use to run the application

@iwishceo
Copy link
Author

We have same issue no matter what browser we use to run the application

Please add your issue to this thread. Thats the only place, so far, OpenAI staff has shown engagement. The more we can have there, the more they wd realize that there is a problem. https://community.openai.com/t/is-anyone-experiencing-websocket-realtime-error-on-chrome-browser/1091793/48

@bvsbharat
Copy link

WebSocket with real-time API exhibits random behaviour; it connects a few times and at other times it takes random user input even though the user is not speaking. Has anyone experienced this behaviour?

@iwishceo
Copy link
Author

WebSocket with real-time API exhibits random behaviour; it connects a few times and at other times it takes random user input even though the user is not speaking. Has anyone experienced this behaviour?

The issue you are describing is unclear. Please provide more details

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

7 participants