{"action":"opened","issue":{"url":"https://api.github.com/repos/millejoh/emacs-ipython-notebook/issues/315","repository_url":"https://api.github.com/repos/millejoh/emacs-ipython-notebook","labels_url":"https://api.github.com/repos/millejoh/emacs-ipython-notebook/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/millejoh/emacs-ipython-notebook/issues/315/comments","events_url":"https://api.github.com/repos/millejoh/emacs-ipython-notebook/issues/315/events","html_url":"https://github.com/millejoh/emacs-ipython-notebook/issues/315","id":330152450,"node_id":"MDU6SXNzdWUzMzAxNTI0NTA=","number":315,"title":"Couldn't authenticate WebSocket connection","user":{"login":"slackline","id":776695,"node_id":"MDQ6VXNlcjc3NjY5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/776695?v=4","gravatar_id":"","url":"https://api.github.com/users/slackline","html_url":"https://github.com/slackline","followers_url":"https://api.github.com/users/slackline/followers","following_url":"https://api.github.com/users/slackline/following{/other_user}","gists_url":"https://api.github.com/users/slackline/gists{/gist_id}","starred_url":"https://api.github.com/users/slackline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackline/subscriptions","organizations_url":"https://api.github.com/users/slackline/orgs","repos_url":"https://api.github.com/users/slackline/repos","events_url":"https://api.github.com/users/slackline/events{/privacy}","received_events_url":"https://api.github.com/users/slackline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-07T07:38:11Z","updated_at":"2018-06-07T07:38:11Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI've encountered the issue of `Couldn't authenticate WebSocket connection` and EIN failing to detect that the kernel is ready `ein: [warn] Kernel is not ready yet! (or closed already)`.  I found a closed issue (#100) on this and it references some solutions which are also closed (#147 and #148) but I still have the \r\n\r\nI'm connecting to a Notebook that is running on a server rather than on the same computer.  I've set passwords under Jupyter Notebook on the remote and from EIN use `ein:notebooklist-login` to enter the password and can then connect using `ein:notebooklist-open` and explicitly providing the URL and port (`http://localhost:8906/`).  This opens a list of notebooks and I can then navigate and open any of these.  When I switch to the buffer though I can not run any code sections with `C-c C-c` as I'm informed the kernel isn't ready.  Code can be executed from a web-browser though so the kernel is running.  Screenshot of Emacs [here](https://i.imgur.com/YsLg6vt.png).\r\n\r\nThe console output shows...\r\n\r\n    [W 07:44:45.189 NotebookApp] Notebook createAverageSpeedSegments.ipynb is not trusted\r\n    [W 07:44:49.648 NotebookApp] Couldn't authenticate WebSocket connection\r\n    [W 07:44:49.651 NotebookApp] 403 GET /api/kernels/5990768d-694e-422c-a2a0-6fc633554040/channels?session_id=85baeb89-62f9-4f3d-9a7a-4168d872374d (::1) 6.57ms referer=None\r\n\r\nWhilst the EIN log shows...\r\n\r\n    [info] Opened notebook list at http://localhost:8906 with path . @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [info] Opening notebook createAverageSpeedSegments.ipynb... @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [info] Reading nbformat4 notebook. @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [info] Worksheet createAverageSpeedSegments.ipynb is ready @#<buffer *ein: http://localhost:8906/createAverageSpeedSegments.ipynb*>\r\n    [info] Enabling autosaves for createAverageSpeedSegments.ipynb with frequency 60 seconds. @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [info] Notebook createAverageSpeedSegments.ipynb is ready @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [info] Kernel started: 5990768d-694e-422c-a2a0-6fc633554040 @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [info] Starting channels WS: \"ws://localhost:8906/api/kernels/5990768d-694e-422c-a2a0-6fc633554040/channels?session_id=85baeb89-62f9-4f3d-9a7a-4168d872374d\" @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [info] Opened notebook list at http://localhost:8906 with path . @#<buffer *ein:notebooklist http://localhost:8906*>\r\n    [warn] Kernel is not ready yet! (or closed already.) @#<buffer *ein: http://localhost:8906/createAverageSpeedSegments.ipynb*>\r\n    [warn] Kernel is not ready yet! (or closed already.) @#<buffer *ein: http://localhost:8906/createAverageSpeedSegments.ipynb*>\r\n    [warn] Kernel is not ready yet! (or closed already.) @#<buffer *ein: http://localhost:8906/createAverageSpeedSegments.ipynb*>\r\n    \r\n\r\nI tried the solution suggested above of switching to `url-retrieve` instead of `curl` but this prevented me from connecting to the Notebook list at all....\r\n\r\n    [W 08:00:53.399 NotebookApp] Forbidden\r\n    [W 08:00:53.399 NotebookApp] 403 GET /api/contents/ (::1) 0.97ms referer=None\r\n    [W 08:01:21.243 NotebookApp] Forbidden\r\n    [W 08:01:21.244 NotebookApp] 403 GET /api/contents/ (::1) 2.08ms referer=None\r\n\r\nReverting to `curl` and I can connect to the Notebook list again but the kernel remains unresponsive.\r\n\r\nJupyter version is 4.4.0 and EIN was installed from MELPA and is version 0.14.1\r\n\r\nLet me know if I can provide any more information."}}
{"actor":{"display_login":"slackline"}}