{"action":"closed","issue":{"url":"https://api.github.com/repos/RackHD/RackHD/issues/89","repository_url":"https://api.github.com/repos/RackHD/RackHD","labels_url":"https://api.github.com/repos/RackHD/RackHD/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/RackHD/RackHD/issues/89/comments","events_url":"https://api.github.com/repos/RackHD/RackHD/issues/89/events","html_url":"https://github.com/RackHD/RackHD/issues/89","id":132527171,"number":89,"title":"getting error in logs while invoking `/api/1.1/workflows/library`endpoint that otherwise works","user":{"login":"heckj","id":43388,"avatar_url":"https://avatars.githubusercontent.com/u/43388?v=3","gravatar_id":"","url":"https://api.github.com/users/heckj","html_url":"https://github.com/heckj","followers_url":"https://api.github.com/users/heckj/followers","following_url":"https://api.github.com/users/heckj/following{/other_user}","gists_url":"https://api.github.com/users/heckj/gists{/gist_id}","starred_url":"https://api.github.com/users/heckj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heckj/subscriptions","organizations_url":"https://api.github.com/users/heckj/orgs","repos_url":"https://api.github.com/users/heckj/repos","events_url":"https://api.github.com/users/heckj/events{/privacy}","received_events_url":"https://api.github.com/users/heckj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RackHD/RackHD/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-09T20:40:55Z","updated_at":"2016-02-24T23:03:56Z","closed_at":"2016-02-24T23:03:56Z","body":"Odd error - in Vagrant demo currently - in the the logs when you invoke the REST API `GET /api/1.1/workflows/library`. The system responds with the correct details, but also posts this error:\r\n\r\n```\r\n20:38:09 http.1   |    context:\r\n20:38:09 http.1   |      identifier: library\r\n20:38:09 http.1   |      collection: graphobjects\r\n20:38:09 http.1   |    status:  404\r\n20:38:09 http.1   |  path:  /workflows/library\r\n20:38:09 http.1   |  Error: Can't set headers after they are sent.\r\n20:38:09 http.1   |      at ServerResponse.OutgoingMessage.setHeader (http.js:691:11)\r\n20:38:09 http.1   |      at ServerResponse.header (/home/vagrant/src/on-http/node_modules/express/lib/response.js:718:10)\r\n20:38:09 http.1   |      at ServerResponse.send (/home/vagrant/src/on-http/node_modules/express/lib/response.js:163:12)\r\n20:38:09 http.1   |      at ServerResponse.json (/home/vagrant/src/on-http/node_modules/express/lib/response.js:249:15)\r\n20:38:09 http.1   |      at handleErrorMiddleware (/home/vagrant/src/on-http/lib/services/rest-api-service.js:332:25)\r\n20:38:09 http.1   |      at Layer.handle_error (/home/vagrant/src/on-http/node_modules/express/lib/router/layer.js:71:5)\r\n20:38:09 http.1   |      at next (/home/vagrant/src/on-http/node_modules/express/lib/router/route.js:129:13)\r\n20:38:09 http.1   |      at Layer.handle_error (/home/vagrant/src/on-http/node_modules/express/lib/router/layer.js:67:12)\r\n20:38:09 http.1   |      at next (/home/vagrant/src/on-http/node_modules/express/lib/router/route.js:129:13)\r\n20:38:09 http.1   |      at Layer.handle_error (/home/vagrant/src/on-http/node_modules/express/lib/router/layer.js:67:12)\r\n20:38:09 http.1   |      at next (/home/vagrant/src/on-http/node_modules/express/lib/router/route.js:129:13)\r\n20:38:09 http.1   |      at /home/vagrant/src/on-http/lib/services/rest-api-service.js:180:17\r\n20:38:09 http.1   |      at tryCatcher (/home/vagrant/src/on-http/node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)\r\n20:38:09 http.1   |      at Promise._settlePromiseFromHandler (/home/vagrant/src/on-http/node_modules/on-core/node_modules/bluebird/js/main/pro…\r\n20:38:09 http.1   |      at Promise._settlePromiseAt (/home/vagrant/src/on-http/node_modules/on-core/node_modules/bluebird/js/main/promise.js:5…\r\n20:38:09 http.1   |      at Promise._settlePromises (/home/vagrant/src/on-http/node_modules/on-core/node_modules/bluebird/js/main/promise.js:69…\r\n20:38:09 http.1   |      at Async._drainQueue (/home/vagrant/src/on-http/node_modules/on-core/node_modules/bluebird/js/main/async.js:123:16)\r\n20:38:09 http.1   |      at Async._drainQueues (/home/vagrant/src/on-http/node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)\r\n20:38:09 http.1   |      at Async.drainQueues (/home/vagrant/src/on-http/node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)\r\n20:38:09 http.1   |      at process._tickDomainCallback (node.js:459:13)\r\n```"}}