vscode-jupyter: '_xsrf' argument missing from POST Cannot connect to remote Jupyter server
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):
[W 2021-08-12 21:06:16.694 ServerApp] Forbidden
[W 2021-08-12 21:06:16.695 ServerApp] 403 GET /api/sessions?1628802376650 (10.23
[W 2021-08-12 21:06:16.696 ServerApp] 403 POST /api/sessions?1628802376654 (10.2
[W 2021-08-12 21:06:16.696 ServerApp] '_xsrf' argument missing from POST
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
Item | Value |
---|---|
CPUs | Intel® Xeon® CPU E5-2676 v3 @ 2.40GHz (2 x 2400) |
GPU Status | 2d_canvas: unavailable_software 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 |
Load (avg) | undefined |
Memory (System) | 8.00GB (1.16GB free) |
Process Argv | –crash-reporter-id 1e88d7ed-dfc2-42ed-b5d3-970568cb872e |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt700cf:30270857
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes516:30244333
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
pythonvssor306:30344512
bridge0708:30335490
vstre464cf:30350173
bridge0723cf:30351748
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (5 by maintainers)
@clayms Please could you start juyter with the following CLI arg
--allow_remote_access=true
, that works for me.Same issue here, but I have solved this issue by changing my custom jupyter configure, which has been discussed in https://github.com/nteract/hydrogen/issues/922#issuecomment-315665849