# Websocket no longer allowed?

**URL:** <https://discuss.huggingface.co/t/websocket-no-longer-allowed/42707>\
**Category:** Spaces\
**Created:** [June 9, 2023, 8:00pm UTC](https://discuss.huggingface.co/t/websocket-no-longer-allowed/42707 "2023-06-09T20:00:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkusStoll](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/markusstoll/32/16865_2.png) [@MarkusStoll](https://discuss.huggingface.co/u/MarkusStoll)\
**Post date:** [June 9, 2023, 8:00pm UTC](https://discuss.huggingface.co/t/websocket-no-longer-allowed/42707/1 "2023-06-09T20:00:42Z")

</div>

We’ve been working with several Hugging Face Spaces without issue until recently. However, from last day onwards, all of our Spaces have been failing to work as expected. It appears that we can’t establish a websocket connection anymore, with the following error:

`Firefox can’t establish a connection to the server at wss://renumics-cifar100-enriched.hf.space/api/ws.`

We are unsure if there has been any changes to websocket permissions or connectivity on the Hugging Face Spaces platform. This error is replicated across all the Spaces we’ve been working on. Public Example: [Explore CIFAR-100 Enriched with Spotlight - a Hugging Face Space by renumics](https://huggingface.co/spaces/renumics/cifar100-enriched)

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [June 9, 2023, 8:29pm UTC](https://discuss.huggingface.co/t/websocket-no-longer-allowed/42707/2 "2023-06-09T20:29:26Z")

</div>

@chris-rannou Could this be caused by the recent hub migration?

---

<div class="post-metadata">

**Author:** ![MarkusStoll](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/markusstoll/32/16865_2.png) [@MarkusStoll](https://discuss.huggingface.co/u/MarkusStoll)\
**Post date:** [June 15, 2023, 11:57am UTC](https://discuss.huggingface.co/t/websocket-no-longer-allowed/42707/3 "2023-06-15T11:57:09Z")

</div>

we have replaced `wsproto` with `websockets` in our app - now it works again 🙂  
[https://github.com/Renumics/spotlight/commit/c3d64ba3a650a626483b7acee6c2a2977d93d83b](https://github.com/Renumics/spotlight/commit/c3d64ba3a650a626483b7acee6c2a2977d93d83b)

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [June 15, 2023, 2:19pm UTC](https://discuss.huggingface.co/t/websocket-no-longer-allowed/42707/4 "2023-06-15T14:19:24Z")

</div>

interesting, do you know what’s the difference?

---

<div class="post-metadata">

**Author:** ![pplonski](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pplonski/32/19737_2.png) [@pplonski](https://discuss.huggingface.co/u/pplonski)\
**Post date:** [September 23, 2023, 11:19am UTC](https://discuss.huggingface.co/t/websocket-no-longer-allowed/42707/5 "2023-09-23T11:19:05Z")

</div>

I’m also interested what was the reason of break.

I’m working on framework called Mercury - [GitHub - mljar/mercury: Convert Jupyter Notebooks to Web Apps](https://github.com/mljar/mercury)

I have few demos that work perfectly on HF. Recently I got info from users that is stopped to work … Here is an example app [Deploy Mercury - a Hugging Face Space by pplonski](https://huggingface.co/spaces/pplonski/deploy-mercury)

Any ideas or tips? Thank you!
