-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Infinity token-authenticated request when connected to remote jupyter server #13345
Comments
Thanks for filing this issue, and sorry you are running into this, I will look into this shortly |
Temporary work aroundFrom here jupyter-server/jupyter_server#1245 (comment) In case somebody from the VSCode looks at this, one theory about what's happening is that when the user is presented with the challenge/response for authentication, the extension holds on to the cookies generated by the server, but when the extension receives a valid response by passing in the token, the extension might not be respecting the sessions cookies set by the server. So for end users who experience this behavior, the current workaround is to not pass the URL containing the token to VSCode and instead allow the extension to ask them for it – until this issue is resolved upstream. |
@zthxxx please could you provide the steps to repro this issue,
|
I use docker-compose, that's all my configuration to reproduce # docker-compose.yml
version: '3.8'
services:
jupyter-lab:
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-scipy-notebook
# https://hub.docker.com/r/jupyter/scipy-notebook
image: jupyter/scipy-notebook
container_name: jupyter-lab
restart: unless-stopped
environment:
- GRANT_SUDO=true
- JUPYTER_TOKEN=${JUPYTER_TOKEN}
user: root
ports:
- 8888:8888
volumes:
- ./notebooks:/home/jovyan/notebooks |
@zthxxx are you still running into this issue
thanks for the docker file, I have tested this at my end and am unable to repro this issue Please feel free to re-open this issue or create a new one if this issue persists. |
Thanks! I'll give it a spin on my local machine. |
@DonJayamanne Hi, seems like I'm still encountering the same problem. I'm using the pre-release version of the Jupyter VSCode Extension (v2023.7.1001901100). I'm only open on a project that doesn't involve Notebooks, just Python files. Same environment I use as below, with jupyter-lab token url ( When I open the project that doesn't involve Notebooks, the logs(on the left) appear several times, but they don't log indefinitely. However, when I open just a single .ipynb file in VSCode, it results in infinite logging on my server, even though I'm connected with the Jupyter Extension and I'm not opening more than one file. |
Please could you enable logging as follows:
I'd like to see what is happening in Jupyter Extension that could be causing these requests |
@DonJayamanne Thank you, here is the logging after I repro the issue. vscode-jupyter-13345-230724.log and my steps here:
|
@zthxxx a few fixes have gone into the extension in this space. |
Closing this issue as its been over 4 weeks, since the information was requested. |
Applies To
What happened?
When open
.ipynb
project in VSCode with connected to exist remote jupyter server likejupyter/scipy-notebook
,the VSCode Jupyter extension will cause infinity "token-authenticated request" to jupyter, and can see huge amount of the same messages in logs, even if the
.ipynb
file or project has been closed, only can be stop by quit or restart VSCode:After debug by many people work with Jupyter itself, it's seems an issue with VSCode, not with Jupiter Server.
link issues:
VS Code Version
Version: 1.77.3
Jupyter Extension Version
v2023.3.1201040234
Jupyter logs
Coding Language and Runtime Version
Python 3.10.10
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote
The text was updated successfully, but these errors were encountered: