{"action":"created","issue":{"url":"https://api.github.com/repos/rrdelaney/horizon-devtools/issues/1","repository_url":"https://api.github.com/repos/rrdelaney/horizon-devtools","labels_url":"https://api.github.com/repos/rrdelaney/horizon-devtools/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/rrdelaney/horizon-devtools/issues/1/comments","events_url":"https://api.github.com/repos/rrdelaney/horizon-devtools/issues/1/events","html_url":"https://github.com/rrdelaney/horizon-devtools/issues/1","id":173764565,"number":1,"title":"Type error","user":{"login":"ivan-kleshnin","id":2128182,"avatar_url":"https://avatars.githubusercontent.com/u/2128182?v=3","gravatar_id":"","url":"https://api.github.com/users/ivan-kleshnin","html_url":"https://github.com/ivan-kleshnin","followers_url":"https://api.github.com/users/ivan-kleshnin/followers","following_url":"https://api.github.com/users/ivan-kleshnin/following{/other_user}","gists_url":"https://api.github.com/users/ivan-kleshnin/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan-kleshnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan-kleshnin/subscriptions","organizations_url":"https://api.github.com/users/ivan-kleshnin/orgs","repos_url":"https://api.github.com/users/ivan-kleshnin/repos","events_url":"https://api.github.com/users/ivan-kleshnin/events{/privacy}","received_events_url":"https://api.github.com/users/ivan-kleshnin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-29T12:37:40Z","updated_at":"2016-08-30T03:14:58Z","closed_at":null,"body":"I'm getting error after GitHub authentication for nor visible reason.\r\n\r\n**Uncaught TypeError: Cannot read property 'replace' of undefined**\r\n\r\nI dunno how to copy-paste full stack log from either Chrome or FF so I'll give a last fragment.\r\n\r\n```js\r\nvar ast2string = function ast2string(ast, live) {\r\n  return ['find', 'find_all', 'above', 'below', 'order', 'limit'].reduce(function (res, key) {\r\n    return res + (!ast[key] ? '' : '.' + key + '(' + JSON.stringify(ast[key][0]).replace(/[\\[\\]\\\"\\{\\}]/g, '') + ')');\r\n  }, (live === 'watch' ? '🔄 ' : '') + ast.collection);\r\n};\r\n```\r\n\r\nLine 3: `ast[key][0]` is undefined\r\n\r\n![shot](https://cloud.githubusercontent.com/assets/2128182/18051686/cb539a4c-6dfe-11e6-9fce-c4e78e35116f.png)\r\n\r\nAs soon as I comment\r\n\r\n```js\r\nlet DevTools = createDevTools(horizon)\r\n```\r\n\r\nand\r\n\r\n```js\r\nexport let DevTools = createDevTools(horizon)\r\n```\r\n\r\nlines – error disappears.\r\n\r\n---\r\n\r\nError is confirmed in both Chrome and Firefox."},"comment":{"url":"https://api.github.com/repos/rrdelaney/horizon-devtools/issues/comments/243321418","html_url":"https://github.com/rrdelaney/horizon-devtools/issues/1#issuecomment-243321418","issue_url":"https://api.github.com/repos/rrdelaney/horizon-devtools/issues/1","id":243321418,"user":{"login":"rrdelaney","id":6325382,"avatar_url":"https://avatars.githubusercontent.com/u/6325382?v=3","gravatar_id":"","url":"https://api.github.com/users/rrdelaney","html_url":"https://github.com/rrdelaney","followers_url":"https://api.github.com/users/rrdelaney/followers","following_url":"https://api.github.com/users/rrdelaney/following{/other_user}","gists_url":"https://api.github.com/users/rrdelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/rrdelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrdelaney/subscriptions","organizations_url":"https://api.github.com/users/rrdelaney/orgs","repos_url":"https://api.github.com/users/rrdelaney/repos","events_url":"https://api.github.com/users/rrdelaney/events{/privacy}","received_events_url":"https://api.github.com/users/rrdelaney/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T03:14:58Z","updated_at":"2016-08-30T03:14:58Z","body":"I didn't realize 2.0 was released. I'll update this with support soon"}}
{"actor":{"display_login":"rrdelaney"}}