jupyter/nbconvert

Error: `403 : Forbidden The error was: '_xsrf' argument missing from GET` on JupyterHub >= 4.1

jrdnbradford opened this issue · 3 comments

Problem

JupyterHub>=4.1 has increased strictness and requires XSRF tokens be passed in GET requests. On these versions of JupyterHub users receive 403 : Forbidden The error was: '_xsrf' argument missing from GET when using nbconvert, at least 7.14.0.

See jupyterhub/nbgitpuller#344 for a similar issue after these updates, it includes the full hub and lab environments.

Steps to Reproduce

  1. On a hub >= 4.1, go to File -> Save and Export Notebook As...
  2. Select any option

Can you test JupyterHub 4.1.4 which was just released? It could have been fixed by jupyterhub/jupyterhub#4759.

@krassowski confirming that jupyterhub 4.1.4 resolved this issue for the-littlest-jupyterhub 1.0.0. Unfortunately I've received the same 403 error on the K8s hub after upgrading.

@krassowski as far as I can tell, jupyterhub 4.1.4 resolves this. See my comments in jupyterlab/jupyterlab#16040. Thanks!