Skip to content
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

403 forbidden #5492

Open
zry979 opened this issue May 29, 2020 · 7 comments
Open

403 forbidden #5492

zry979 opened this issue May 29, 2020 · 7 comments

Comments

@zry979
Copy link

zry979 commented May 29, 2020

Forbidden
403 GET /api/sessions?1590785577432 (127.0.0.1) 4.99ms referer=None

I can open the jupyter notebook with chorme successfully but cannot do anything with the errors above

image

@PasamonteG
Copy link

The notebook server works but floods the terminal log with these messages every few seconds.

[W 21:35:59.166 NotebookApp] 403 GET /api/kernels?1672259759163 (127.0.0.1) 0.720000ms referer=None
[W 21:36:01.825 NotebookApp] Forbidden
[W 21:36:01.825 NotebookApp] 403 GET /api/kernelspecs?1672259761822 (127.0.0.1) 0.990000ms referer=None
[W 21:36:14.655 NotebookApp] Forbidden
[W 21:36:14.655 NotebookApp] 403 GET /api/sessions?1672259774651 (127.0.0.1) 0.910000ms referer=None
[W 21:36:16.212 NotebookApp] Forbidden
[W 21:36:16.213 NotebookApp] 403 GET /api/sessions?1672259776209 (127.0.0.1) 0.700000ms referer=None

@TheCleric
Copy link

Also having similar issues:

[W 12:49:38.781 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 1.330000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:51:38.748 NotebookApp] Forbidden
[W 12:51:38.748 NotebookApp] 403 GET /api/contents/mnist/notebook19f6927d6b.ipynb?content=0&_=1673540578348 (::1) 1.070000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:51:38.769 NotebookApp] Forbidden
[W 12:51:38.769 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 1.190000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:53:38.827 NotebookApp] Forbidden
[W 12:53:38.829 NotebookApp] 403 GET /api/contents/mnist/notebook19f6927d6b.ipynb?content=0&_=1673540578349 (::1) 3.070000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:53:38.859 NotebookApp] Forbidden
[W 12:53:38.860 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 1.630000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:55:39.138 NotebookApp] Forbidden
[W 12:55:39.138 NotebookApp] 403 GET /api/contents/mnist/notebook19f6927d6b.ipynb?content=0&_=1673540578350 (::1) 1.210000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:55:39.188 NotebookApp] Forbidden
[W 12:55:39.188 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 1.670000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:57:38.751 NotebookApp] Forbidden
[W 12:57:38.752 NotebookApp] 403 GET /api/contents/mnist/notebook19f6927d6b.ipynb?content=0&_=1673540578351 (::1) 0.950000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:57:38.777 NotebookApp] Forbidden
[W 12:57:38.777 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 2.160000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:59:39.387 NotebookApp] Forbidden
[W 12:59:39.388 NotebookApp] 403 GET /api/contents/mnist/notebook19f6927d6b.ipynb?content=0&_=1673540578352 (::1) 1.700000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 12:59:39.412 NotebookApp] Forbidden
[W 12:59:39.412 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 2.270000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 13:01:38.749 NotebookApp] Forbidden
[W 13:01:38.749 NotebookApp] 403 GET /api/contents/mnist/notebook19f6927d6b.ipynb?content=0&_=1673540578353 (::1) 0.890000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 13:01:38.772 NotebookApp] Forbidden
[W 13:01:38.772 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 1.480000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 13:03:38.780 NotebookApp] Forbidden
[W 13:03:38.781 NotebookApp] 403 GET /api/contents/mnist/notebook19f6927d6b.ipynb?content=0&_=1673540578354 (::1) 1.790000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb
[W 13:03:38.816 NotebookApp] Forbidden
[W 13:03:38.816 NotebookApp] 403 PUT /api/contents/mnist/notebook19f6927d6b.ipynb (::1) 1.420000ms referer=http://localhost:8889/notebooks/mnist/notebook19f6927d6b.ipynb

@TheCleric
Copy link

In addition I notice on refresh of a notebook or jupyter page, I get re-prompted for my token. I'm also seeing this in my log:

[E 13:23:56.741 NotebookApp] Error unpacking user from cookie: Extra data: line 1 column 8 (char 7)

@wallyhall
Copy link

In addition I notice on refresh of a notebook or jupyter page, I get re-prompted for my token. I'm also seeing this in my log:

[E 13:23:56.741 NotebookApp] Error unpacking user from cookie: Extra data: line 1 column 8 (char 7)

@TheCleric - interesting, we're seeing this too via Binder - linking here in case it's relevant... jupyterhub/binderhub#1622

@wallyhall
Copy link

@TheCleric - see my comment here ... have you tried pinning to jupyterlab 3.4.8?

@takluyver
Copy link
Member

I just ran into this as well, and installing an older version of jupyter-server (pip install 'jupyter-server<2') made it work. I see there's also a jupyter-server issue: jupyter-server/jupyter_server#1038

@Linusnie
Copy link

Linusnie commented Sep 15, 2024

Same issue here, downgrading jupyter-server didn't work either

edit: not sure why but changing the port from 8888 to 8885 made the warnings go away

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants