{"action":"created","issue":{"url":"https://api.github.com/repos/amejiarosario/meanshop/issues/33","repository_url":"https://api.github.com/repos/amejiarosario/meanshop","labels_url":"https://api.github.com/repos/amejiarosario/meanshop/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/amejiarosario/meanshop/issues/33/comments","events_url":"https://api.github.com/repos/amejiarosario/meanshop/issues/33/events","html_url":"https://github.com/amejiarosario/meanshop/issues/33","id":143174150,"number":33,"title":"webserver is down for a bug in one request?","user":{"login":"dportabella","id":976546,"avatar_url":"https://avatars.githubusercontent.com/u/976546?v=3","gravatar_id":"","url":"https://api.github.com/users/dportabella","html_url":"https://github.com/dportabella","followers_url":"https://api.github.com/users/dportabella/followers","following_url":"https://api.github.com/users/dportabella/following{/other_user}","gists_url":"https://api.github.com/users/dportabella/gists{/gist_id}","starred_url":"https://api.github.com/users/dportabella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dportabella/subscriptions","organizations_url":"https://api.github.com/users/dportabella/orgs","repos_url":"https://api.github.com/users/dportabella/repos","events_url":"https://api.github.com/users/dportabella/events{/privacy}","received_events_url":"https://api.github.com/users/dportabella/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amejiarosario/meanshop/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-24T07:43:38Z","updated_at":"2016-03-29T00:33:40Z","closed_at":null,"body":"I checkout this meanshop repository and I forget to configure the braintree payment. I run the server with `grunt serve`, and I can browse successfully the pages about catalog. If I click on the cart, then there is a server error:\r\n```\r\n/Users/david/webdev/meanshop/server/api/braintree/braintree.controller.js:33\r\n    return handleResponse(res)(err, data.clientToken);\r\n                                        ^\r\nTypeError: Cannot read property 'clientToken' of null\r\n    at /Users/david/webdev/meanshop/server/api/braintree/braintree.controller.js:33:41\r\n\r\n```\r\nand now all the webserver is down; I cannot browse the pages about catalog as before.\r\n\r\nonly because of a bug in one page, the whole webserver is now down.\r\nI think this is not acceptable.\r\nwhat do you think?\r\n"},"comment":{"url":"https://api.github.com/repos/amejiarosario/meanshop/issues/comments/202645281","html_url":"https://github.com/amejiarosario/meanshop/issues/33#issuecomment-202645281","issue_url":"https://api.github.com/repos/amejiarosario/meanshop/issues/33","id":202645281,"user":{"login":"amejiarosario","id":418605,"avatar_url":"https://avatars.githubusercontent.com/u/418605?v=3","gravatar_id":"","url":"https://api.github.com/users/amejiarosario","html_url":"https://github.com/amejiarosario","followers_url":"https://api.github.com/users/amejiarosario/followers","following_url":"https://api.github.com/users/amejiarosario/following{/other_user}","gists_url":"https://api.github.com/users/amejiarosario/gists{/gist_id}","starred_url":"https://api.github.com/users/amejiarosario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amejiarosario/subscriptions","organizations_url":"https://api.github.com/users/amejiarosario/orgs","repos_url":"https://api.github.com/users/amejiarosario/repos","events_url":"https://api.github.com/users/amejiarosario/events{/privacy}","received_events_url":"https://api.github.com/users/amejiarosario/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T00:33:39Z","updated_at":"2016-03-29T00:33:39Z","body":"I agree. It should recover from missing configs. I'll fix it, also feel free to send a `pull request` with a fix if you already have it. Thanks"}}