{"action":"created","issue":{"url":"https://api.github.com/repos/a85/Newman/issues/194","labels_url":"https://api.github.com/repos/a85/Newman/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/a85/Newman/issues/194/comments","events_url":"https://api.github.com/repos/a85/Newman/issues/194/events","html_url":"https://github.com/a85/Newman/issues/194","id":60850757,"number":194,"title":"Error occasionally getting recieved by a recent change","user":{"login":"wbrooks1981","id":7572078,"avatar_url":"https://avatars.githubusercontent.com/u/7572078?v=3","gravatar_id":"","url":"https://api.github.com/users/wbrooks1981","html_url":"https://github.com/wbrooks1981","followers_url":"https://api.github.com/users/wbrooks1981/followers","following_url":"https://api.github.com/users/wbrooks1981/following{/other_user}","gists_url":"https://api.github.com/users/wbrooks1981/gists{/gist_id}","starred_url":"https://api.github.com/users/wbrooks1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbrooks1981/subscriptions","organizations_url":"https://api.github.com/users/wbrooks1981/orgs","repos_url":"https://api.github.com/users/wbrooks1981/repos","events_url":"https://api.github.com/users/wbrooks1981/events{/privacy}","received_events_url":"https://api.github.com/users/wbrooks1981/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-12T16:46:04Z","updated_at":"2015-03-13T19:18:22Z","closed_at":"2015-03-13T19:18:22Z","body":"After upgrading to Newman 1.2.13, I noticed an error coming through.  This was random at times,  but I was getting the following:\r\n\r\nTypeError: Cannot read property '0' of undefined\r\n    at Object.jsface.Class._runTestCases (C:\\Users\\WBrooks\\AppData\\Roaming\\npm\\node_modules\\newman\\src\\responseHandlers\\TestResponseHandler.js:51:20)\r\n    at Object.jsface.Class._onRequestExecuted (C:\\Users\\WBrooks\\AppData\\Roaming\\npm\\node_modules\\newman\\src\\responseHandlers\\TestResponseHandler.js:37:28)\r\n    at EventEmitter.emit (events.js:117:20)\r\n    at Object.jsface.Class.emit (C:\\Users\\WBrooks\\AppData\\Roaming\\npm\\node_modules\\newman\\src\\utilities\\EventEmitter.js:34:16)\r\n    at Object.<anonymous> (C:\\Users\\WBrooks\\AppData\\Roaming\\npm\\node_modules\\newman\\src\\runners\\RequestRunner.js:189:22)\r\n    at self.callback (C:\\Users\\WBrooks\\AppData\\Roaming\\npm\\node_modules\\newman\\node_modules\\request\\request.js:123:22)\r\n    at Request.EventEmitter.emit (events.js:95:17)\r\n    at ClientRequest.self.clientErrorHandler (C:\\Users\\WBrooks\\AppData\\Roaming\\npm\\node_modules\\newman\\node_modules\\request\\request.js:244:10)\r\n    at ClientRequest.EventEmitter.emit (events.js:95:17)\r\n    at CleartextStream.socketErrorListener (http.js:1547:9)\r\n\r\n\r\nAfter looking through the project the following piece of code is causing the issue in TestResponseHandler\r\nif(body[0] === '\\uFEFF') {\r\n        //body = body.substring(1);\r\n}\r\nThe check against the body object is failing. However, more importantly the piece of code doesn't do anything.  (I am not sure if this was left in there by mistake or for use in future development).\r\n\r\nAnyway, when I change my local instance of newman and remove the code, my tests run completely.  Add it back in and the error will show up."},"comment":{"url":"https://api.github.com/repos/a85/Newman/issues/comments/79272339","html_url":"https://github.com/a85/Newman/issues/194#issuecomment-79272339","issue_url":"https://api.github.com/repos/a85/Newman/issues/194","id":79272339,"user":{"login":"wbrooks1981","id":7572078,"avatar_url":"https://avatars.githubusercontent.com/u/7572078?v=3","gravatar_id":"","url":"https://api.github.com/users/wbrooks1981","html_url":"https://github.com/wbrooks1981","followers_url":"https://api.github.com/users/wbrooks1981/followers","following_url":"https://api.github.com/users/wbrooks1981/following{/other_user}","gists_url":"https://api.github.com/users/wbrooks1981/gists{/gist_id}","starred_url":"https://api.github.com/users/wbrooks1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbrooks1981/subscriptions","organizations_url":"https://api.github.com/users/wbrooks1981/orgs","repos_url":"https://api.github.com/users/wbrooks1981/repos","events_url":"https://api.github.com/users/wbrooks1981/events{/privacy}","received_events_url":"https://api.github.com/users/wbrooks1981/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T19:18:22Z","updated_at":"2015-03-13T19:18:22Z","body":"After the update today, it's working well."}}