# Cannot connect to websockets (sometimes)

**URL:** <https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603>\
**Category:** Bugs\
**Tags:** realtime\
**Created:** [January 15, 2025, 11:30am UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603 "2025-01-15T11:30:25Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 15, 2025, 11:30am UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/1 "2025-01-15T11:30:25Z")

</div>

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](http://google.com) site.

My colleague has the same issue, so it is probably not my computer.

Anyone with the same problem?

---

<div class="post-metadata">

**Author:** ![newme](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/newme/32/384445_2.png) [@newme](https://community.openai.com/u/newme)\
**Post date:** [January 15, 2025, 12:45pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/2 "2025-01-15T12:45:15Z")

</div>

Same here.  
It was ok several hours ago.

---

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 15, 2025, 12:58pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/3 "2025-01-15T12:58:25Z")

</div>

So I found out the playground doesn’t work in Chrome too ([https://platform.openai.com/playground/realtime](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.

---

<div class="post-metadata">

**Author:** ![chinmay1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/chinmay1/32/7546_2.png) [@chinmay1](https://community.openai.com/u/chinmay1)\
**Post date:** [January 15, 2025, 3:03pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/4 "2025-01-15T15:03:44Z")

</div>

We are having the same problem.

---

<div class="post-metadata">

**Author:** ![chinmay1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/chinmay1/32/7546_2.png) [@chinmay1](https://community.openai.com/u/chinmay1)\
**Post date:** [January 15, 2025, 3:12pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/5 "2025-01-15T15:12:56Z")

</div>

—Deleted my comments, as it may have been incorrect.------

---

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 15, 2025, 4:05pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/6 "2025-01-15T16:05:58Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 15, 2025, 4:26pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/7 "2025-01-15T16:26:15Z")

</div>

But the problem persists for my colleague. It seems like some DNS problem, probably taking time to propagate—but that’s just my wild guess.

---

<div class="post-metadata">

**Author:** ![chinmay1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/chinmay1/32/7546_2.png) [@chinmay1](https://community.openai.com/u/chinmay1)\
**Post date:** [January 15, 2025, 4:59pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/8 "2025-01-15T16:59:33Z")

</div>

Is it working on Chrome or Safari?

---

<div class="post-metadata">

**Author:** ![chinmay1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/chinmay1/32/7546_2.png) [@chinmay1](https://community.openai.com/u/chinmay1)\
**Post date:** [January 15, 2025, 6:40pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/9 "2025-01-15T18:40:01Z")

</div>

**UPDATE** : As of 10:45 PST, even Safari not working.

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.

---

<div class="post-metadata">

**Author:** ![bumuthudilshanhhk](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/bumuthudilshanhhk/32/536982_2.png) [@bumuthudilshanhhk](https://community.openai.com/u/bumuthudilshanhhk)\
**Post date:** [January 15, 2025, 7:52pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/10 "2025-01-15T19:52:05Z")

</div>

Facing the same issue. I could connect from my other computer with the same browser(Chorme). Is it due to an IP blacklisting?

---

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 15, 2025, 8:29pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/11 "2025-01-15T20:29:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chinmay1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/chinmay1/32/7546_2.png) [@chinmay1](https://community.openai.com/u/chinmay1)\
**Post date:** [January 15, 2025, 9:04pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/12 "2025-01-15T21:04:57Z")

</div>

Looks like it’s fixed now. At least working for us.

---

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 16, 2025, 2:13pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/13 "2025-01-16T14:13:50Z")

</div>

Yes, it is working for us too.

---

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 16, 2025, 2:14pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/14 "2025-01-16T14:14:07Z")

</div>

Is there any official note on this?

---

<div class="post-metadata">

**Author:** ![lss](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/lss/32/449484_2.png) [@lss](https://community.openai.com/u/lss)\
**Post date:** [January 18, 2025, 9:02pm UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/15 "2025-01-18T21:02:11Z")

</div>

And it happens again now. This is just horrible, no reaction from OpenAI, the API is just not working again.

---

<div class="post-metadata">

**Author:** ![newme](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/newme/32/384445_2.png) [@newme](https://community.openai.com/u/newme)\
**Post date:** [January 19, 2025, 9:12am UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/17 "2025-01-19T09:12:45Z")

</div>

Same here.  
It happened about 10 hours ago and I gave up and waited.  
Now it’s still not working.

---

<div class="post-metadata">

**Author:** ![chinmay1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/chinmay1/32/7546_2.png) [@chinmay1](https://community.openai.com/u/chinmay1)\
**Post date:** [January 20, 2025, 2:06am UTC](https://community.openai.com/t/cannot-connect-to-websockets-sometimes/1091603/18 "2025-01-20T02:06:57Z")

</div>

Please follow this link and post there. That way OpenAi can get a consolidated view: [Is anyone experiencing WebSocket Realtime Error on Chrome browser? - #26 by lss](https://community.openai.com/t/is-anyone-experiencing-websocket-realtime-error-on-chrome-browser/1091793/26)
