I used the realtime api through websockets until yesterday. Today I cannot connect to the websockets URL from - mainly from Chrome browser. It says “WebSocket connection to ‘wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview-2024-12-17’ failed”.
It fails immediately when I run this:
const ws = new WebSocket(‘wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview-2024-12-17’)
But what is strange, it works on some hosts (basically I just open DevTools on any site) and doesn’t work on other hosts. It also works in MS Edge and not in Chrome - e.g. on google.com site.
My colleague has the same issue, so it is probably not my computer.
So I found out the playground doesn’t work in Chrome too (https://platform.openai.com/playground/realtime). It works in Edge for me, though. I am on Windows. My colleague on Mac cannot get it to run even in Edge.
So it must be definitely some problem on OpenAI side.
It seems to have started working again for me. This was a really weird problem. It would be nice to see a note from OpenAI on this (I know I’m being naive).
Have not heard anything from @adminsys yet. As we tried to debug, we could see that in Chrome, header is going empty. On Safari header is going properly.
It still works on my computer in all browsers I have (Windows, so no Safari). My colleague still has this problem on Mac in Edge and Chrome, but works in Safari.