JupyterHub in Docker and Nginx on host: Websocket problem

If this is with JupyterHub, I suspect you might be hitting this issue using the legacy notebook server, which doesn’t provide this endpoint. Check the single-user server logs to see if it says it’s starting “Jupyter Server” or “Notebook” and the version.

You can specifically launch jupyter-server with JUPYTERHUB_SINGLEUSER_APP=jupyter-server in the spawner environment.