{"action":"created","issue":{"url":"https://api.github.com/repos/minrk/jupyter-dar/issues/9","repository_url":"https://api.github.com/repos/minrk/jupyter-dar","labels_url":"https://api.github.com/repos/minrk/jupyter-dar/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/minrk/jupyter-dar/issues/9/comments","events_url":"https://api.github.com/repos/minrk/jupyter-dar/issues/9/events","html_url":"https://github.com/minrk/jupyter-dar/issues/9","id":322273589,"number":9,"title":"RContext cannot be started","user":{"login":"nuest","id":1325054,"avatar_url":"https://avatars1.githubusercontent.com/u/1325054?v=4","gravatar_id":"","url":"https://api.github.com/users/nuest","html_url":"https://github.com/nuest","followers_url":"https://api.github.com/users/nuest/followers","following_url":"https://api.github.com/users/nuest/following{/other_user}","gists_url":"https://api.github.com/users/nuest/gists{/gist_id}","starred_url":"https://api.github.com/users/nuest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuest/subscriptions","organizations_url":"https://api.github.com/users/nuest/orgs","repos_url":"https://api.github.com/users/nuest/repos","events_url":"https://api.github.com/users/nuest/events{/privacy}","received_events_url":"https://api.github.com/users/nuest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-11T12:08:07Z","updated_at":"2018-05-12T11:41:49Z","closed_at":null,"author_association":"COLLABORATOR","body":"When manually POSTing (replace token!) to stencila-host for a new `RContext`, we get an error message:\r\n\r\n```\r\n curl -X POST http://localhost:8888/stencila-host/RContext?token=4d7c2e8f0bc840019e1d3acfd268748398b6d8697366128f\r\nInternal error: TypeError: Cannot read property 'servers' of undefined\r\n    at Promise.resolve.then.then (/opt/stencila/node_modules/stencila-node/lib/host/Host.js:330:35)\r\n    at <anonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:188:7)\r\n```\r\n\r\nTo replicate run\r\n\r\n```\r\ndocker build --tag jupyter-dar-r .\r\ndocker run -p 8888:8888 jupyter-dar-r\r\n```\r\n\r\nusing the branch `rcontext` of this repo and open Jupyter using the link in the console. Then start a new terminal for Jupyter and manually fix the manifest file created by `stencila/r` to use `spawn` instead of `run` property, resuting in\r\n\r\n![image](https://user-images.githubusercontent.com/1325054/39922281-b12df2b2-551e-11e8-9b9a-612cda44fa46.png)\r\n\r\nThen kill all processes of `node stencila-host.js` (there are several).\r\n\r\nRunning the span command manually does return a manifest that looks OK, but in `Host.js` that JSON does not seem to be parsed at all (`manifest.servers` gives `Cannot read property 'servers' of undefined`).\r\n\r\n![image](https://user-images.githubusercontent.com/1325054/39923722-226d6844-5525-11e8-9096-2c88abd1442b.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/minrk/jupyter-dar/issues/comments/388549307","html_url":"https://github.com/minrk/jupyter-dar/issues/9#issuecomment-388549307","issue_url":"https://api.github.com/repos/minrk/jupyter-dar/issues/9","id":388549307,"user":{"login":"nuest","id":1325054,"avatar_url":"https://avatars1.githubusercontent.com/u/1325054?v=4","gravatar_id":"","url":"https://api.github.com/users/nuest","html_url":"https://github.com/nuest","followers_url":"https://api.github.com/users/nuest/followers","following_url":"https://api.github.com/users/nuest/following{/other_user}","gists_url":"https://api.github.com/users/nuest/gists{/gist_id}","starred_url":"https://api.github.com/users/nuest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuest/subscriptions","organizations_url":"https://api.github.com/users/nuest/orgs","repos_url":"https://api.github.com/users/nuest/repos","events_url":"https://api.github.com/users/nuest/events{/privacy}","received_events_url":"https://api.github.com/users/nuest/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T11:41:49Z","updated_at":"2018-05-12T11:41:49Z","author_association":"COLLABORATOR","body":"@nokome Is your message https://gitter.im/stencila/stencila?at=5af6a5ccb84be71db9fed8e0 potentially a solution to this error?"}}
{"actor":{"display_login":"nuest"}}