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
'_xsrf' argument missing from POST Cannot connect to remote Jupyter server #7107
Comments
Thanks for filing this issue, I'll look into this today. |
I'm sorry, but I'm unable to replicate this issue
|
I am running into this issue too. Here are the details about my environment:
I have VS Code Version 1.59.1 with Jupyter extension v2021.8.1236758218. In the "Pick how to connect to Jupyter" dialog, I selected "Existing" and pasted the token-URL.
|
@jonasbb This is a bug. Jupyter Labs opens just fine in a browser without having to do this. It is only this VS Code extension that has this issue. Though it could likely be any environment other than the browser. To get the LYNX browser to accept cookies:
Commands: Use arrow keys to move, '?' for help, 'q' to quit, '<-' to go back.
Arrow keys: Up and Down to move. Right to follow a link; Left to go back.
H)elp O)ptions P)rint G)o M)ain screen Q)uit /=search [delete]=history list
<your_ip_address> cookie: username-<your_ip_address>-8=2|1:0|10:1630081600|27:username-<your_ip_address>-8891|44:oijnfdvubwhebfmblkKBJHBvhvvh=|khsabdvjsadbgvJHBBjkbJhjsdbba774etbudsaubdusa Allow? (Y/N/Always/neVer)
'A'lways allowing from domain '<your_ip_address>'. before it reverts to: Commands: Use arrow keys to move, '?' for help, 'q' to quit, '<-' to go back. Not sure if it matters, but at this point I usually press q, then y to quit the LYNX browser. |
@clayms Opening the browser and using jupyter lab from the browser work fine. I don't understand the suggestion to use the lynx browser. |
@jonasbb |
I see you edited your comment to include "I don't understand the suggestion to use the lynx browser." I did not suggest using the LYNX browser. The LYNX browser is a terminal-only browser that starts automatically every time you start any Jupyter server. To prevent this from happening set the jupyter lab --ip=<your_ip_address> --browser=False Note: If you are running from localhost and not a remote server, you can drop the |
@clayms Let me clarify my situation:
|
You issue is possibly related to mine, but I am not sure. I am always starting a Jupyter server on a remote server and then pasting the resulting link+token in VS Code. Several versions ago, Anaconda started using the LYNX terminal based browser as default. Though this may only happen if Anaconda can't find a system browser. Anaconda even has LYNX in its repo: https://anaconda.org/conda-forge/lynx. In any case, when running from a remote server, either using the command-line option |
@clayms |
thanks very much, working |
Same issue here, but I have solved this issue by changing my custom jupyter configure, which has been discussed in nteract/hydrogen#922 (comment) |
@clayms please could you try the same thing |
using I don't want to change |
Thanks for getting back with the confirmation that it works. |
Issue Type: Bug
An instance of Jupyter Labs works without issue from the same computer. However, with VS Code I get
Invalid response: 403 Forbidden
.This only started happening recently after a VS Code update. I have not updated Jupyter.
The Jupyter Server terminal shows (only when trying to connect from VS Code):
Extension version: 2021.8.1195043623
VS Code version: Code 1.59.0 (379476f0e13988d90fab105c5c19e7abc8b1dea8, 2021-08-04T23:13:12.822Z)
OS version: Windows_NT x64 10.0.14393
Restricted Mode: No
System Info
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
A/B Experiments
The text was updated successfully, but these errors were encountered: