{"action":"closed","issue":{"url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/126","repository_url":"https://api.github.com/repos/phonegap/connect-phonegap","labels_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/126/comments","events_url":"https://api.github.com/repos/phonegap/connect-phonegap/issues/126/events","html_url":"https://github.com/phonegap/connect-phonegap/issues/126","id":97470835,"number":126,"title":"Error: Can't set headers after they are sent.","user":{"login":"Globegitter","id":2580254,"avatar_url":"https://avatars.githubusercontent.com/u/2580254?v=3","gravatar_id":"","url":"https://api.github.com/users/Globegitter","html_url":"https://github.com/Globegitter","followers_url":"https://api.github.com/users/Globegitter/followers","following_url":"https://api.github.com/users/Globegitter/following{/other_user}","gists_url":"https://api.github.com/users/Globegitter/gists{/gist_id}","starred_url":"https://api.github.com/users/Globegitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Globegitter/subscriptions","organizations_url":"https://api.github.com/users/Globegitter/orgs","repos_url":"https://api.github.com/users/Globegitter/repos","events_url":"https://api.github.com/users/Globegitter/events{/privacy}","received_events_url":"https://api.github.com/users/Globegitter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/connect-phonegap/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/phonegap/connect-phonegap/milestones/8","html_url":"https://github.com/phonegap/connect-phonegap/milestones/Maintenance","labels_url":"https://api.github.com/repos/phonegap/connect-phonegap/milestones/8/labels","id":1308945,"number":8,"title":"Maintenance","description":"","creator":{"login":"mwbrooks","id":21328,"avatar_url":"https://avatars.githubusercontent.com/u/21328?v=3","gravatar_id":"","url":"https://api.github.com/users/mwbrooks","html_url":"https://github.com/mwbrooks","followers_url":"https://api.github.com/users/mwbrooks/followers","following_url":"https://api.github.com/users/mwbrooks/following{/other_user}","gists_url":"https://api.github.com/users/mwbrooks/gists{/gist_id}","starred_url":"https://api.github.com/users/mwbrooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwbrooks/subscriptions","organizations_url":"https://api.github.com/users/mwbrooks/orgs","repos_url":"https://api.github.com/users/mwbrooks/repos","events_url":"https://api.github.com/users/mwbrooks/events{/privacy}","received_events_url":"https://api.github.com/users/mwbrooks/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2015-09-16T17:46:54Z","updated_at":"2016-02-29T23:51:47Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-07-27T14:03:39Z","updated_at":"2016-02-29T23:51:47Z","closed_at":"2016-02-29T23:51:47Z","body":"I am using cordova to build our web app and trying to debug it using the wonderful phonegap developer app. The app is building and the server via `phonegap serve` running fine. But when trying to connect to it the app crashes and I am getting the following error:\r\n\r\n```sh\r\nError: Can't set headers after they are sent.\r\n    at ServerResponse.OutgoingMessage.setHeader (http.js:691:11)\r\n    at ServerResponse.res.setHeader (/home/mpadourek/npm/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/connect/lib/patch.js:63:22)\r\n    at ServerResponse.<anonymous> (/home/mpadourek/npm/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/connect/lib/patch.js:80:14)\r\n    at Array.forEach (native)\r\n    at ServerResponse.res.writeHead (/home/mpadourek/npm/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/connect/lib/patch.js:79:28)\r\n    at null.<anonymous> (/home/mpadourek/npm/lib/node_modules/phonegap/node_modules/connect-phonegap/lib/middleware/zip.js:70:21)\r\n    at EventEmitter.emit (events.js:117:20)\r\n    at Archiver.append (/home/mpadourek/npm/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/archiver/lib/core.js:317:10)\r\n    at EventEmitter.<anonymous> (/home/mpadourek/npm/lib/node_modules/phonegap/node_modules/connect-phonegap/lib/middleware/zip.js:89:29)\r\n    at EventEmitter.emit (events.js:106:17)\r\n```\r\n\r\nUsing phonegap `v5.1.1` and running app version `v1.5.4` on Android 5.1.\r\n"}}