{"action":"created","issue":{"url":"https://api.github.com/repos/steptools/StepNCViewer/issues/84","repository_url":"https://api.github.com/repos/steptools/StepNCViewer","labels_url":"https://api.github.com/repos/steptools/StepNCViewer/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/steptools/StepNCViewer/issues/84/comments","events_url":"https://api.github.com/repos/steptools/StepNCViewer/issues/84/events","html_url":"https://github.com/steptools/StepNCViewer/issues/84","id":160944185,"number":84,"title":"Attempting to load a non-existent project crashes the server","user":{"login":"ian-h-chamberlain","id":11131775,"avatar_url":"https://avatars.githubusercontent.com/u/11131775?v=3","gravatar_id":"","url":"https://api.github.com/users/ian-h-chamberlain","html_url":"https://github.com/ian-h-chamberlain","followers_url":"https://api.github.com/users/ian-h-chamberlain/followers","following_url":"https://api.github.com/users/ian-h-chamberlain/following{/other_user}","gists_url":"https://api.github.com/users/ian-h-chamberlain/gists{/gist_id}","starred_url":"https://api.github.com/users/ian-h-chamberlain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ian-h-chamberlain/subscriptions","organizations_url":"https://api.github.com/users/ian-h-chamberlain/orgs","repos_url":"https://api.github.com/users/ian-h-chamberlain/repos","events_url":"https://api.github.com/users/ian-h-chamberlain/events{/privacy}","received_events_url":"https://api.github.com/users/ian-h-chamberlain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ian-h-chamberlain","id":11131775,"avatar_url":"https://avatars.githubusercontent.com/u/11131775?v=3","gravatar_id":"","url":"https://api.github.com/users/ian-h-chamberlain","html_url":"https://github.com/ian-h-chamberlain","followers_url":"https://api.github.com/users/ian-h-chamberlain/followers","following_url":"https://api.github.com/users/ian-h-chamberlain/following{/other_user}","gists_url":"https://api.github.com/users/ian-h-chamberlain/gists{/gist_id}","starred_url":"https://api.github.com/users/ian-h-chamberlain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ian-h-chamberlain/subscriptions","organizations_url":"https://api.github.com/users/ian-h-chamberlain/orgs","repos_url":"https://api.github.com/users/ian-h-chamberlain/repos","events_url":"https://api.github.com/users/ian-h-chamberlain/events{/privacy}","received_events_url":"https://api.github.com/users/ian-h-chamberlain/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-06-17T18:07:27Z","updated_at":"2016-06-17T18:58:48Z","closed_at":null,"body":"To recreate, start the server and attempt to load a project that doesn't exist:\r\nMessages:\r\n```\r\nGET /stepnc/asdf 304 - - 125.858 ms\r\nThis project doesn't exist\r\nFinder: no file open\r\nGET /v2/nc/projects/asdf/workplan/ 500 1259 - 10.850 ms\r\nTypeError: Cannot read property 'map' of undefined\r\n    at exeFromId (/Users/ianchamberlain/step/StepNCViewer/src/server/api/v2/step.js:19:54)\r\n    at _getMwp (/Users/ianchamberlain/step/StepNCViewer/src/server/api/v2/step.js:38:24)\r\n    at Layer.handle [as handle_request] (/Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/layer.js:95:5)\r\n    at next (/Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/route.js:131:13)\r\n    at Route.dispatch (/Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/route.js:112:3)\r\n    at Layer.handle [as handle_request] (/Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/layer.js:95:5)\r\n    at /Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/index.js:277:22\r\n    at param (/Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/index.js:349:14)\r\n    at param (/Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/index.js:365:14)\r\n    at Function.process_params (/Users/ianchamberlain/step/StepNCViewer/node_modules/express/lib/router/index.js:410:3)\r\nGET /v2/nc/projects/asdf/state/loop/ 304 - - 2.261 ms\r\nAssertion failed: (val->IsString() == true), function Write, file ../src/string_bytes.cc, line 358.\r\nThis project doesn't exist\r\n\r\nProcess finished with exit code 134\r\n```"},"comment":{"url":"https://api.github.com/repos/steptools/StepNCViewer/issues/comments/226853314","html_url":"https://github.com/steptools/StepNCViewer/issues/84#issuecomment-226853314","issue_url":"https://api.github.com/repos/steptools/StepNCViewer/issues/84","id":226853314,"user":{"login":"ian-h-chamberlain","id":11131775,"avatar_url":"https://avatars.githubusercontent.com/u/11131775?v=3","gravatar_id":"","url":"https://api.github.com/users/ian-h-chamberlain","html_url":"https://github.com/ian-h-chamberlain","followers_url":"https://api.github.com/users/ian-h-chamberlain/followers","following_url":"https://api.github.com/users/ian-h-chamberlain/following{/other_user}","gists_url":"https://api.github.com/users/ian-h-chamberlain/gists{/gist_id}","starred_url":"https://api.github.com/users/ian-h-chamberlain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ian-h-chamberlain/subscriptions","organizations_url":"https://api.github.com/users/ian-h-chamberlain/orgs","repos_url":"https://api.github.com/users/ian-h-chamberlain/repos","events_url":"https://api.github.com/users/ian-h-chamberlain/events{/privacy}","received_events_url":"https://api.github.com/users/ian-h-chamberlain/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T18:58:48Z","updated_at":"2016-06-17T18:58:48Z","body":"Partially fixed in #86 but needs better error checking"}}
{"actor":{"display_login":"ian-h-chamberlain"}}