{"action":"created","issue":{"url":"https://api.github.com/repos/node-nock/nock/issues/709","repository_url":"https://api.github.com/repos/node-nock/nock","labels_url":"https://api.github.com/repos/node-nock/nock/issues/709/labels{/name}","comments_url":"https://api.github.com/repos/node-nock/nock/issues/709/comments","events_url":"https://api.github.com/repos/node-nock/nock/issues/709/events","html_url":"https://github.com/node-nock/nock/issues/709","id":180663617,"number":709,"title":"Getting error \"cannot read property 'toLowerCase' of undefined\" while using nock back","user":{"login":"hugoduraes","id":1050268,"avatar_url":"https://avatars.githubusercontent.com/u/1050268?v=3","gravatar_id":"","url":"https://api.github.com/users/hugoduraes","html_url":"https://github.com/hugoduraes","followers_url":"https://api.github.com/users/hugoduraes/followers","following_url":"https://api.github.com/users/hugoduraes/following{/other_user}","gists_url":"https://api.github.com/users/hugoduraes/gists{/gist_id}","starred_url":"https://api.github.com/users/hugoduraes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugoduraes/subscriptions","organizations_url":"https://api.github.com/users/hugoduraes/orgs","repos_url":"https://api.github.com/users/hugoduraes/repos","events_url":"https://api.github.com/users/hugoduraes/events{/privacy}","received_events_url":"https://api.github.com/users/hugoduraes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-03T15:02:22Z","updated_at":"2016-10-16T21:03:50Z","closed_at":null,"body":"While using nock back on `record` mode and with the following options:\r\n\r\n```js\r\n{\r\n  recorder: {\r\n    dont_print: true,\r\n    output_objects: false,\r\n    enable_reqheaders_recording: false,\r\n    use_separator: false\r\n  }\r\n}\r\n```\r\n\r\nI'm getting the following error:\r\n\r\n```\r\nTypeError: Cannot read property 'toLowerCase' of undefined\r\n    at /path/to/project/node_modules/nock/lib/scope.js:295:36\r\n    at Array.forEach (native)\r\n    at Function.define (/path/to/project/node_modules/nock/lib/scope.js:291:12)\r\n    at load (/path/to/project/node_modules/nock/lib/back.js:231:19)\r\n    at Object.start (/path/to/project/node_modules/nock/lib/back.js:155:19)\r\n    at Function.Back (/path/to/project/node_modules/nock/lib/back.js:63:23)\r\n    [...]\r\n```\r\n\r\nIt only occurs when replaying a previous recorded nock. It runs fine when the request is made to the real server."},"comment":{"url":"https://api.github.com/repos/node-nock/nock/issues/comments/254074776","html_url":"https://github.com/node-nock/nock/issues/709#issuecomment-254074776","issue_url":"https://api.github.com/repos/node-nock/nock/issues/709","id":254074776,"user":{"login":"vrinek","id":81346,"avatar_url":"https://avatars.githubusercontent.com/u/81346?v=3","gravatar_id":"","url":"https://api.github.com/users/vrinek","html_url":"https://github.com/vrinek","followers_url":"https://api.github.com/users/vrinek/followers","following_url":"https://api.github.com/users/vrinek/following{/other_user}","gists_url":"https://api.github.com/users/vrinek/gists{/gist_id}","starred_url":"https://api.github.com/users/vrinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrinek/subscriptions","organizations_url":"https://api.github.com/users/vrinek/orgs","repos_url":"https://api.github.com/users/vrinek/repos","events_url":"https://api.github.com/users/vrinek/events{/privacy}","received_events_url":"https://api.github.com/users/vrinek/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T21:03:50Z","updated_at":"2016-10-16T21:03:50Z","body":"Could you please provide a failing test? I'm having trouble reproducing this."}}
{"actor":{"display_login":"vrinek"}}