# Unsupported upgrade request.

**URL:** <https://support.prodi.gy/t/unsupported-upgrade-request/4821>\
**Category:** Getting Started\
**Tags:** install, solved, server\
**Created:** [October 19, 2021, 6:07am UTC](https://support.prodi.gy/t/unsupported-upgrade-request/4821 "2021-10-19T06:07:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustav](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gustav](https://support.prodi.gy/u/gustav)\
**Post date:** [October 19, 2021, 6:07am UTC](https://support.prodi.gy/t/unsupported-upgrade-request/4821/1 "2021-10-19T06:07:31Z")

</div>

Hi,  
I have recently upgraded my prodigy licence from the previous version 1.10(spaCy v2) to the latest version using spaCy v3. When launching my script for text categorisation I am receiving an error when loading the web interface which gives me:

Unsupported upgrade request.

What am I missing?

```python
✨ Starting the web server at http://0.0.0.0:8051 ...
Open the app in your browser and start annotating!

INFO: Started server process [3861953]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8051 (Press CTRL+C to quit)
WARNING: Unsupported upgrade request.

```

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [October 19, 2021, 10:09am UTC](https://support.prodi.gy/t/unsupported-upgrade-request/4821/2 "2021-10-19T10:09:54Z")

</div>

Hi! I've never seen this one before but after some googling, it looks like this is related to `uvicorn` (the ASGI server library we use). See here:

> <https://github.com/tiangolo/fastapi/issues/2209#issuecomment-713341164>
>
> \`\`\`py
> app = FastAPI()
> 
> @app.websocket("/ws")
> async def websoc(websocket: Web…Socket):
> await websocket.accept()
> await websocket.send\_json({"msg": "Hello WebSocket"})
> await websocket.close()
> \`\`\`
> 
> When attempting to run this (using UviCorn), it starts fine
> 
> then, when i try and use my client to connect the the websocket, i get this error
> 
> \`\`\`bash
> Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) \[MSC v.1927 64 bit (AMD64)\] on win32
> \>\>\> runfile('C:/Users/Tobi/Documents/Scripting/Mixed/Webpage/main.py', wdir='C:/Users/Tobi/Documents/Scripting/Mixed/Webpage')
> INFO: Started server process \[9580\]
> INFO: Waiting for application startup.
> INFO: Application startup complete.
> INFO: Uvicorn running on http://192.168.1.88:80 (Press CTRL+C to quit)
> \*\*WARNING: Unsupported upgrade request.\*\*
> \`\`\`
> 
> This is my client code, its just supposed to be a very simple test
> 
> \`\`\`py
> import websocket, time
> 
> ws = websocket.create\_connection("ws://192.168.1.88/ws")
> 
> while True:
> ws.recv()
> time.sleep(2)
> \`\`\`
> 
> Let me know if you can help, or if anyone else has had similar issues with this.

According to this comment, it's resolved by uninstalling and re-installing `uvicorn`, so could you try that and see if it helps?

---

<div class="post-metadata">

**Author:** ![gustav](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gustav](https://support.prodi.gy/u/gustav)\
**Post date:** [October 19, 2021, 10:48am UTC](https://support.prodi.gy/t/unsupported-upgrade-request/4821/3 "2021-10-19T10:48:38Z")

</div>

> [@ines](#):
>
> uvicorn

Thanks! The fix worked.
