tkf / emacs-ipython-notebook

IPython notebook client in Emacs
tkf.github.com/emacs-ipython-notebook/
GNU General Public License v3.0
548 stars 51 forks source link

20210216.1627 does not work, 403 error on ein:run #206

Closed glyph closed 3 years ago

glyph commented 3 years ago

From *ein:log-all*:

14:01:39:795: [info] ein:jupyter-server--run: /Users/glyph/.local/bin/jupyter-notebook --notebook-dir=~/Documents/Notebooks/ --no-browser @#<buffer *Messages*>
14:01:41:300: [error] Login to http://127.0.0.1:8888 failed, error-thrown (error http 403), raw-header HTTP/1.1 403 Forbidden
Server: TornadoServer/6.1
Content-Type: text/html
Date: Thu, 18 Feb 2021 22:01:41 GMT
X-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Content-Length: 7204
Set-Cookie: _xsrf=2|bb1f6e16|c9385bc1db59d7e239d1ff3be5298926|1613685701; Path=/
 @#<buffer *Messages*>

From *ein server*:

[I 14:01:40.678 NotebookApp] Serving notebooks from local directory: /Users/glyph/Documents/Notebooks
[I 14:01:40.679 NotebookApp] Jupyter Notebook 6.2.0 is running at:
[I 14:01:40.679 NotebookApp] http://localhost:8888/?token=1ee8c6f364f8f7d33354ef046cfc70e8aae80a01eb61945b
[I 14:01:40.679 NotebookApp]  or http://127.0.0.1:8888/?token=1ee8c6f364f8f7d33354ef046cfc70e8aae80a01eb61945b
[I 14:01:40.679 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:01:40.683 NotebookApp] 

    To access the notebook, open this file in a browser:
        file:///Users/glyph/Library/Jupyter/runtime/nbserver-67731-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=1ee8c6f364f8f7d33354ef046cfc70e8aae80a01eb61945b
     or http://127.0.0.1:8888/?token=1ee8c6f364f8f7d33354ef046cfc70e8aae80a01eb61945b
[W 14:01:41.177 NotebookApp] 403 POST /login (127.0.0.1): XSRF cookie does not match POST argument
[W 14:01:41.203 NotebookApp] 403 POST /login (127.0.0.1) 26.380000ms referer=None
[W 14:01:41.242 NotebookApp] 403 POST /login (127.0.0.1): XSRF cookie does not match POST argument
[W 14:01:41.243 NotebookApp] 403 POST /login (127.0.0.1) 1.230000ms referer=None

From *messages*:

ein: [info] ein:jupyter-server--run: /Users/glyph/.local/bin/jupyter-notebook --notebook-dir=~/Documents/Notebooks/ --no-browser
[error] request--callback: peculiar error: 403 [2 times]
ein: [error] Login to http://127.0.0.1:8888 failed, error-thrown (error http 403), raw-header HTTP/1.1 403 Forbidden
Server: TornadoServer/6.1
Content-Type: text/html
Date: Thu, 18 Feb 2021 22:01:41 GMT
X-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Content-Length: 7204
Set-Cookie: _xsrf=2|bb1f6e16|c9385bc1db59d7e239d1ff3be5298926|1613685701; Path=/
glyph commented 3 years ago
GNU Emacs 27.1 (build 1, x86_64-apple-darwin20.2.0, NS appkit-2022.20 Version 11.1 (Build 20C69)) of 2021-01-31

$ jupyter-notebook --version
6.2.0

Happy to supply whatever other version information I can

glyph commented 3 years ago

This was on the wrong repo. This one should be archived or something!