Open joelostblom opened 3 years ago
Is there any more detail in the response tab of the response object with the websocket 400 error?
Unfortunately not, it just says No response data available for this request
.
The full response headers look like this:
GETwss://pims.syzygy.ca/jupyter/user/joel.ostblom/lsp/ws/pylsp
[HTTP/1.1 400 Bad Request 73ms]
GET
wss://pims.syzygy.ca/jupyter/user/joel.ostblom/lsp/ws/pylsp
Status400
Bad Request
VersionHTTP/1.1
Transferred371 B (0 B size)
HTTP/1.1 400 Bad Request
Date: Thu, 02 Sep 2021 16:07:33 GMT
Server: TornadoServer/6.1
Strict-Transport-Security: max-age=15768000
content-type: text/html; charset=UTF-8
x-content-type-options: nosniff
x-jupyterhub-version: 1.4.2
content-security-policy: frame-ancestors 'self';report-uri /jupyter/hub/security/csp-report
content-length: 34
Connection: close
And the request headers:
Accept
*/*
Accept-Encoding
gzip, deflate, br
Accept-Language
en-US,en;q=0.5
Cache-Control
no-cache
Connection
keep-alive, Upgrade
Cookie
jupyterhub-user-joel.ostblom="2|1:0|10:1630598852|28:jupyterhub-user-joel.ostblom|44:ZTU4YWE2MTAyZjBmNGUxMWFjYTllOTA3NmI3Y2JiYzU=|75b151421dce66f24a5e5969b3199618b0c215323d1abc44bda1fa1b00e5b278"; jupyterhub-session-id=88141c7c81594c3a8eb60080a1ee3db9; _xsrf=2|56a083ca|4baeba6fe5acf6732a44f92d66a592d5|1630443109
DNT
1
Host
pims.syzygy.ca
Origin
https://pims.syzygy.ca
Pragma
no-cache
Sec-Fetch-Dest
websocket
Sec-Fetch-Mode
websocket
Sec-Fetch-Site
same-origin
Sec-WebSocket-Extensions
permessage-deflate
Sec-WebSocket-Key
eXt3x+k6wR+K8QmBEKispg==
Sec-WebSocket-Version
13
Upgrade
websocket
User-Agent
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Same problem here...
I am trying to use jupyterlab-lsp with our jupyterhub at https://pims.syzygy.ca, but the extension gets stuck at "connecting..." in the statusbar and it says my notebook is not connected when clicking the statusbar indicator:
We have installed
jupyterlab-lsp
andjupyter-lsp-python
via conda and when I runconda list | grep lsp
it shows the following:On my local machine I have the same package installed and jupyter-lab lsp works fine. I am not in charge of the installations in the jupyterhub, so I have limited ability to iterate on testing what is wrong and am instead trying to figure it out from the developer console. I can see that it says
Firefox can’t establish a connection to the server at wss://pims.syzygy.ca/jupyter/user/joel.ostblom/lsp/ws/pylsp
, is there something different we need to do when installing on JupuyterHub to ensure thatpylsp
is put in the correct folders?Required: installed server extensions
Required: installed lab extensions
Troubleshoot Output