포스트

tornado.web.HTTPError HTTP 403 Forbidden

~/.jupyter/custom/custom.css

custom.css를 수정하니까 주피터에서 403 forbidden 에러가 발생했다.

1
2
3
4
5
6
7
8
[E 23:37:53.179 NotebookApp] Error unpacking user from cookie: Expecting value: line 1 column 1 (char 0)
[W 23:37:53.179 NotebookApp] Clearing invalid/expired login cookie username-localhost-8888
[W 23:37:53.179 NotebookApp] wrote error: 'Forbidden'
    Traceback (most recent call last):
        result = method(*self.path_args, **self.path_kwargs)
        url = self.get_login_url()
        raise web.HTTPError(403)
    tornado.web.HTTPError: HTTP 403: Forbidden

해결

https://github.com/jupyter/notebook/issues/6702#issuecomment-1412832225

2023-06-12 기준으로 jupyter-server 버전을 1로 다운그래이드하면 된다.

1
pip install --upgrade 'jupyter-server<2.0.0'

pip list | grep jupyter jupyter 1.0.0 jupyter_client 8.2.0 jupyter-console 6.4.0 jupyter-contrib-core 0.4.2 jupyter-contrib-nbextensions 0.7.0 jupyter_core 5.3.0 jupyter-dash 0.4.2 jupyter-events 0.6.3 jupyter-highlight-selected-word 0.2.0 jupyter-lsp 2.1.0 jupyter-nbextensions-configurator 0.6.1 jupyter-packaging 0.7.12 jupyter-resource-usage 0.7.2 jupyter_scheduler 1.2.0 jupyter-server 1.24.0 jupyter_server_fileid 0.9.0 jupyter_server_terminals 0.4.4 jupyter_server_ydoc 0.8.0 jupyter-telemetry 0.1.0 jupyter-ydoc 0.2.4 jupyterhub 4.0.0 jupyterhub-idle-culler 1.2.1 jupyterlab 4.0.2 jupyterlab-pygments 0.1.2 jupyterlab_server 2.22.0 jupyterlab-widgets 3.0.5 jupyterthemes 0.20.0

끝.

이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.