简体   繁体   中英

Jupyter notebook forbidden access

Jupyter starts with everything green until this pops up.

[W 09:25:48.054 NotebookApp] Forbidden
[W 09:25:48.055 NotebookApp] 403 GET /api/config/tree?_=1510190747959 (127.0.0.1) 1.33ms referer=http://localhost:8888/tree

I can't see any files or folders in Jupyter Home screen. When refreshing the page I get a smilar error.

[W 09:29:01.631 NotebookApp] Forbidden
[W 09:29:01.632 NotebookApp] 403 GET /api/terminals?_=1510190747965 (127.0.0.1) 2.37ms referer=http://localhost:8888/tree

It's been a while since I last used Jupyter on this pc, and I think I fiddled around with jupyter's ssl auth last time.

I have tried emptying .jupyter folder and reinstalling it with no success.

I had a similar problem: one time I enabled ssl on jupyter (with command jupyter notebook --certfile=mycert.pem --keyfile mykey.key ) and since that moment, whenever I tried to start jupyter without SSL, I could not access it with a browser and I got errors very similar to yours.

I noticed that when I start jupyter without SSL and I run the browser in a private mode, everything works correctly.

Finally, I fixed the problem by deleting all history in the browser (it was Firefox, so I did Shift + Ctrl + Del ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM