# Debugging websocket connection errors

**URL:** <https://discourse.jupyter.org/t/debugging-websocket-connection-errors/783>\
**Category:** BinderHub\
**Created:** [April 11, 2019, 1:21pm UTC](https://discourse.jupyter.org/t/debugging-websocket-connection-errors/783 "2019-04-11T13:21:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amn41](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/amn41/32/429_2.png) [@amn41](https://discourse.jupyter.org/u/amn41)\
**Post date:** [April 11, 2019, 1:21pm UTC](https://discourse.jupyter.org/t/debugging-websocket-connection-errors/783/1 "2019-04-11T13:21:37Z")

</div>

I have a binderhub deployment running on k8s via helm.

I am able to run notebooks on the binder instance, but when I try to connect via [juniper](https://github.com/ines/juniper) I get failures when trying to connect to the websocket.

The container gets launched correctly, but then I get an uninformative error in the browser:  
`Firefox can’t establish a connection to the server at ws://...`

Do I need to configure anything on my binderhub / jupyterhub deployment to enable these connections?

---

<div class="post-metadata">

**Author:** ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)\
**Post date:** [April 11, 2019, 7:07pm UTC](https://discourse.jupyter.org/t/debugging-websocket-connection-errors/783/2 "2019-04-11T19:07:59Z")

</div>

You need to setup CORS similar to what we use for [mybinder.org](http://mybinder.org)

> <https://github.com/jupyterhub/mybinder.org-deploy/blob/6c7c6354aef7e635a7e97a305d30dfad4969e33e/mybinder/values.yaml#L141-L143>

I think there is a second place it needs to be defined (searching for cors in the repo should get you there).

(make sure to check towards the top of the file for the definition of that YAML reference/anchor thing)
