oTree Forum >

Reverse proxy: websocket dependency incompatibility

#1 by steffen

I am running Otree 5.10.4 behind a reverse proxy and have the same issue as described here on the old forum: https://groups.google.com/g/otree/c/sj4Ac2dIpRc

Unfortunately, the fix described there does not work. It appears that somewhere between version 5.2.6 and 5.10.4, Otree bumped the websockets version requirement from 8.1 to 10.1, while keeping the uvicorn requirement at 0.13.4. That uvicorn version still depends on the 8.x branch of websockets. Thus, when I add `uvicorn[standard]==0.13.4` to the requirements, I get the following error:

28.92 ERROR: Cannot install -r requirements.txt (line 1) and uvicorn[standard]==0.13.4 because these package versions have conflicting dependencies.
28.93 
28.93 The conflict is caused by:
28.93     otree 5.10.4 depends on websockets==10.1
28.93     uvicorn[standard] 0.13.4 depends on websockets==8.*; extra == "standard"

Is there another workaround or can the current version just not be used with a reverse proxy? Would it be possible to make Otree depend on uvicorn[standard] in the future, to avoid such issues?

Write a reply

Set forum username