# Error during WebSocket handshake: Unexpected response code: 200

**URL:** <https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745>\
**Category:** Wowza Streaming Engine\
**Created:** [May 14, 2017, 11:23pm UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745 "2017-05-14T23:23:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kulwinder\_Kaur](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kulwinder\_Kaur](https://community.wowza.com/u/Kulwinder_Kaur)\
**Post date:** [May 14, 2017, 11:23pm UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/1 "2017-05-14T23:23:06Z")

</div>

I am using webrtc publisher for streaming video recordings to wowza media server. I tried using my own security certificate but it showed error loading certificate in logs. So, I tried it with wowza streamlock certificate which seems to be loading correctly but I cant still stream videos as it gives me following error:

“WebSocket connection to ‘wss://58cea26c71866.streamlock.net/webrtc-session.json’ failed. Error during WebSocket handshake: Unexpected response code: 200”

---

<div class="post-metadata">

**Author:** ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)\
**Post date:** [May 15, 2017, 4:18pm UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/2 "2017-05-15T16:18:24Z")

</div>

Hello @Kulwinder Kaur

To further track down why you are getting a WebSocket handshake error, I would recommend sending the below info into a support ticket for review. [Link](https://www.wowza.com/support/open-ticket)

**[install-dir]/conf**  
**[install-dir]/logs (Only latest logs are needed showing a Wowza Server restart and WebRTC connection attempts)**

If you are not sure how to get this information please see the following tutorial.[https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)

If the files are larger than the 16mb email limit, please send a downloadable link to the files.

Regards,

JasonT

---

<div class="post-metadata">

**Author:** ![Kulwinder\_Kaur](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kulwinder\_Kaur](https://community.wowza.com/u/Kulwinder_Kaur)\
**Post date:** [May 15, 2017, 9:20pm UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/3 "2017-05-15T21:20:58Z")

</div>

Hi Jason

I have submitted a ticket (228750) already but not getting very prompt responses. I need to solve this urgently. Can you please look into it as you assisted me with the security certificate configuration on my local server. Now, I am having issue swith certificate on my production server.

---

<div class="post-metadata">

**Author:** ![Kulwinder\_Kaur](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kulwinder\_Kaur](https://community.wowza.com/u/Kulwinder_Kaur)\
**Post date:** [May 17, 2017, 12:22am UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/4 "2017-05-17T00:22:21Z")

</div>

I am still waiting on my ticket number 228750

---

<div class="post-metadata">

**Author:** ![Jacob\_Earl\_Potolin](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Jacob\_Earl\_Potolin](https://community.wowza.com/u/Jacob_Earl_Potolin)\
**Post date:** [March 1, 2018, 5:07am UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/5 "2018-03-01T05:07:51Z")

</div>

I also encountered this problem too!, i just use this link [https://www.wowza.com/\_private/webrtc/4.7.0/publish/](https://www.wowza.com/_private/webrtc/4.7.0/publish/) and supplied my streamlock and encountered the same error. I also checked the logs but there was no error

---

<div class="post-metadata">

**Author:** ![Wayne\_Bailey1](https://avatars.discourse-cdn.com/v4/letter/w/e8c25b/32.png) [@Wayne\_Bailey1](https://community.wowza.com/u/Wayne_Bailey1)\
**Post date:** [May 24, 2018, 2:17pm UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/6 "2018-05-24T14:17:32Z")

</div>

@Kulwinder Kaur

- were you able to solve this issue? I’m encountering the same thing, with no errors in the logs.

Thanks!

---

<div class="post-metadata">

**Author:** ![Eric\_Lee](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@Eric\_Lee](https://community.wowza.com/u/Eric_Lee)\
**Post date:** [June 5, 2018, 10:49pm UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/7 "2018-06-05T22:49:50Z")

</div>

I had the same issue! Got it working after I realized I had placed I had mistakenly placed the WebRTC HTTPProvider (below) under my 1935 HostPort entry rather than my 443 (SSL port) entry. You could double check this configuration in your VHost.xml file.

```auto
<HTTPProvider>
  <BaseClass>com.wowza.wms.webrtc.http.HTTPWebRTCExchangeSessionInfo</BaseClass>
  <RequestFilters>*webrtc-session.json</RequestFilters>
  <AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>

```

Cheers

---

<div class="post-metadata">

**Author:** ![sergey\_demchenko](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@sergey\_demchenko](https://community.wowza.com/u/sergey_demchenko)\
**Post date:** [June 29, 2018, 10:05am UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/8 "2018-06-29T10:05:25Z")

</div>

Important put this section beefor section with \*

```auto
<HTTPProvider>
   <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
   <RequestFilters>*</RequestFilters>
   <AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>

```

---

<div class="post-metadata">

**Author:** ![Steven\_Love](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Steven\_Love](https://community.wowza.com/u/Steven_Love)\
**Post date:** [October 31, 2018, 11:10pm UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/9 "2018-10-31T23:10:56Z")

</div>

This was exactly my problem. Thanks for the helpful comment!

---

<div class="post-metadata">

**Author:** ![Isai\_Gesapine](https://avatars.discourse-cdn.com/v4/letter/i/b3f665/32.png) [@Isai\_Gesapine](https://community.wowza.com/u/Isai_Gesapine)\
**Post date:** [September 2, 2019, 9:51am UTC](https://community.wowza.com/t/error-during-websocket-handshake-unexpected-response-code-200/48745/10 "2019-09-02T09:51:37Z")

</div>

I encountered this issue also. I had it working after modifying **[install-dir]/conf/Server.xml** then adding the following to the end of file:

```auto
<Property>
 	<Name>webrtc76de5tceo3l18xdh9e7ga</Name>
	<Value>true</Value>
	<Type>Boolean</Type>
</Property>

```
