{"action":"opened","issue":{"url":"https://api.github.com/repos/bw-allardvanhelbergen/go/issues/102","labels_url":"https://api.github.com/repos/bw-allardvanhelbergen/go/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/bw-allardvanhelbergen/go/issues/102/comments","events_url":"https://api.github.com/repos/bw-allardvanhelbergen/go/issues/102/events","html_url":"https://github.com/bw-allardvanhelbergen/go/issues/102","id":86661285,"number":102,"title":"Fix _doc bug","user":{"login":"bw-allardvanhelbergen","id":6330375,"avatar_url":"https://avatars.githubusercontent.com/u/6330375?v=3","gravatar_id":"","url":"https://api.github.com/users/bw-allardvanhelbergen","html_url":"https://github.com/bw-allardvanhelbergen","followers_url":"https://api.github.com/users/bw-allardvanhelbergen/followers","following_url":"https://api.github.com/users/bw-allardvanhelbergen/following{/other_user}","gists_url":"https://api.github.com/users/bw-allardvanhelbergen/gists{/gist_id}","starred_url":"https://api.github.com/users/bw-allardvanhelbergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bw-allardvanhelbergen/subscriptions","organizations_url":"https://api.github.com/users/bw-allardvanhelbergen/orgs","repos_url":"https://api.github.com/users/bw-allardvanhelbergen/repos","events_url":"https://api.github.com/users/bw-allardvanhelbergen/events{/privacy}","received_events_url":"https://api.github.com/users/bw-allardvanhelbergen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bw-allardvanhelbergen/go/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/bw-allardvanhelbergen/go/milestones/2","html_url":"https://github.com/bw-allardvanhelbergen/go/milestones/0.1.0%20-%20Beta%20%22Cola%20with%20Mentos%22","labels_url":"https://api.github.com/repos/bw-allardvanhelbergen/go/milestones/2/labels","id":913340,"number":2,"title":"0.1.0 - Beta \"Cola with Mentos\"","description":"http://youtu.be/igSE5_Nce28\r\n\r\nGeneral\r\n- [x] Form validation\r\n- [x] URI validation and clean up\r\n- [x] Give nice errors/success messages\r\n- [ ] Custom Error pages\r\n\r\nAdmin\r\n- [ ] User overview of links\r\n- [ ] Total overview of links\r\n\r\nAnalytics\r\n- [x] Log redirect usage\r\n- [ ] Show simple stat on user URL management screen\r\n- [ ] Total redirect stats page\r\n","creator":{"login":"bw-allardvanhelbergen","id":6330375,"avatar_url":"https://avatars.githubusercontent.com/u/6330375?v=3","gravatar_id":"","url":"https://api.github.com/users/bw-allardvanhelbergen","html_url":"https://github.com/bw-allardvanhelbergen","followers_url":"https://api.github.com/users/bw-allardvanhelbergen/followers","following_url":"https://api.github.com/users/bw-allardvanhelbergen/following{/other_user}","gists_url":"https://api.github.com/users/bw-allardvanhelbergen/gists{/gist_id}","starred_url":"https://api.github.com/users/bw-allardvanhelbergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bw-allardvanhelbergen/subscriptions","organizations_url":"https://api.github.com/users/bw-allardvanhelbergen/orgs","repos_url":"https://api.github.com/users/bw-allardvanhelbergen/repos","events_url":"https://api.github.com/users/bw-allardvanhelbergen/events{/privacy}","received_events_url":"https://api.github.com/users/bw-allardvanhelbergen/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":26,"state":"open","created_at":"2014-12-23T14:54:32Z","updated_at":"2015-06-09T16:42:11Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-06-09T16:42:11Z","updated_at":"2015-06-09T16:42:11Z","closed_at":null,"body":"createOrUpdateUser() seems to return null once in a while...\r\n\r\nFrom live logs:\r\n2015-06-04T08:59:20.746Z - error: uncaughtException: Cannot read property '_doc' of null date=Thu Jun 04 2015 08:59:20 GMT+0000 (UTC), pid=16192, uid=2044, gid=2044, cwd=/home/brandwatch/go, execPath=/home/brandwatch/.nvm/v0.10.33/bin/n\r\node, version=v0.10.33, argv=[/home/brandwatch/.nvm/v0.10.33/bin/node, /home/brandwatch/go], rss=100614144, heapTotal=87993600, heapUsed=46218640, loadavg=[0.0029296875, 0.0146484375, 0.04541015625], uptime=3283428.054689778, trace=[colu\r\nmn=53, file=/home/brandwatch/go/app/controllers/userController.js, function=null, line=35, method=null, native=false, column=54, file=/home/brandwatch/go/node_modules/q/q.js, function=_fulfilled, line=794, method=null, native=false, col\r\numn=30, file=/home/brandwatch/go/node_modules/q/q.js, function=self.promiseDispatch.done, line=823, method=promiseDispatch.done, native=false, column=13, file=/home/brandwatch/go/node_modules/q/q.js, function=Promise.promise.promiseDisp\r\natch, line=756, method=promise.promiseDispatch, native=false, column=44, file=/home/brandwatch/go/node_modules/q/q.js, function=null, line=564, method=null, native=false, column=17, file=/home/brandwatch/go/node_modules/q/q.js, function\r\n=flush, line=110, method=null, native=false, column=13, file=node.js, function=process._tickCallback, line=419, method=_tickCallback, native=false], stack=[TypeError: Cannot read property '_doc' of null,     at /home/brandwatch/go/app/c\r\nontrollers/userController.js:35:53,     at _fulfilled (/home/brandwatch/go/node_modules/q/q.js:794:54),     at self.promiseDispatch.done (/home/brandwatch/go/node_modules/q/q.js:823:30),     at Promise.promise.promiseDispatch (/home/bra\r\nndwatch/go/node_modules/q/q.js:756:13),     at /home/brandwatch/go/node_modules/q/q.js:564:44,     at flush (/home/brandwatch/go/node_modules/q/q.js:110:17),     at process._tickCallback (node.js:419:13)]\r\n"}}