{"action":"opened","issue":{"url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/161","repository_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber","labels_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/161/comments","events_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/161/events","html_url":"https://github.com/mucsi96/nightwatch-cucumber/issues/161","id":195261476,"number":161,"title":"Screenshot is causing error when step fails (OS X only)","user":{"login":"JonWallsten","id":5993909,"avatar_url":"https://avatars.githubusercontent.com/u/5993909?v=3","gravatar_id":"","url":"https://api.github.com/users/JonWallsten","html_url":"https://github.com/JonWallsten","followers_url":"https://api.github.com/users/JonWallsten/followers","following_url":"https://api.github.com/users/JonWallsten/following{/other_user}","gists_url":"https://api.github.com/users/JonWallsten/gists{/gist_id}","starred_url":"https://api.github.com/users/JonWallsten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonWallsten/subscriptions","organizations_url":"https://api.github.com/users/JonWallsten/orgs","repos_url":"https://api.github.com/users/JonWallsten/repos","events_url":"https://api.github.com/users/JonWallsten/events{/privacy}","received_events_url":"https://api.github.com/users/JonWallsten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T14:05:36Z","updated_at":"2016-12-13T14:05:36Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x ] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead use https://groups.google.com/d/forum/nightwatch-cucumber\r\n```\r\n\r\n**Current behavior**\r\nScreenshot is not taken when step fails and the following error is generated\r\n```\r\nRangeError: Maximum call stack size exceeded\r\n    at CucumberAPI.handleAttachments (/myPath/lib/cucumber-api.js:61:42)\r\n    at next (native)\r\n    at PrettyFormatter.<anonymous> (/myPath/node_modules/nightwatch-cucumber/lib/cucumber-api.js:87:24)\r\n    at next (native)\r\n    at onFulfilled (/myPath/node_modules/nightwatch-cucumber/node_modules/co/index.js:65:19)\r\n```\r\n\r\n**Expected/desired behavior**\r\nScreenshot should be taken. No error should occur.\r\n\r\n**Reproduction of the problem**\r\nInstall latest Cucumber RC and Nightwatch Cucumber 6.x.x.\r\nRun a test with a step that will fail.\r\n\r\n**What is the expected behavior?**\r\nShould save screenshot and not generate error\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nIt was previously working and is needed.\r\n\r\n\r\n**Please tell us about your environment:**\r\nOSX 10.11.6\r\n* **nightwatch-cucumber version:**\r\n6.1.1\r\n* **nightwatch version:**\r\n0.9.9\r\n* **cucumber version:**\r\n2.0.0-rc.2\r\n* **Node.js version:**\r\n6.6.0"}}
{"actor":{"display_login":"JonWallsten"}}