{"action":"closed","issue":{"url":"https://api.github.com/repos/bigcompany/hook.io/issues/44","labels_url":"https://api.github.com/repos/bigcompany/hook.io/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/bigcompany/hook.io/issues/44/comments","events_url":"https://api.github.com/repos/bigcompany/hook.io/issues/44/events","html_url":"https://github.com/bigcompany/hook.io/issues/44","id":74471013,"number":44,"title":"Hook error when gist no longer available","user":{"login":"vrunoa","id":329957,"avatar_url":"https://avatars.githubusercontent.com/u/329957?v=3","gravatar_id":"","url":"https://api.github.com/users/vrunoa","html_url":"https://github.com/vrunoa","followers_url":"https://api.github.com/users/vrunoa/followers","following_url":"https://api.github.com/users/vrunoa/following{/other_user}","gists_url":"https://api.github.com/users/vrunoa/gists{/gist_id}","starred_url":"https://api.github.com/users/vrunoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrunoa/subscriptions","organizations_url":"https://api.github.com/users/vrunoa/orgs","repos_url":"https://api.github.com/users/vrunoa/repos","events_url":"https://api.github.com/users/vrunoa/events{/privacy}","received_events_url":"https://api.github.com/users/vrunoa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-08T19:38:39Z","updated_at":"2015-07-23T14:02:24Z","closed_at":"2015-07-23T14:02:24Z","body":"Hey @Marak I found an error testing an old hook I was using to test this module. I believe the module crash when the gist is no longer available. Maybe it would we good to avoid this exception and show a pretty message? Let me know and i'll try to merge a PR with a fix.\r\n\r\n```javascript\r\n//output\r\n/root/hook.io/temp/vrunoa/560bb84d38e24078b66a.js:1\r\n(function (exports, require, module, __filename, __dirname) { <!DOCTYPE html>\r\n                                                              ^\r\nSyntaxError: Unexpected token <\r\n    at vm.js:73:16\r\n    at Module._compile (module.js:443:25)\r\n    at Object..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.<anonymous> (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at EventEmitter.attemptToRequireUntrustedHook (/root/hook.io/lib/resources/hook/attemptToRequireUntrustedHook.js:18:21)\r\n    at /root/hook.io/lib/resources/hook/runHook.js:22:11\r\n    at /root/hook.io/lib/resources/hook/fetchHookSourceCodeFromGithub.js:43:13\r\n```\r\n[http://hook.io/vrunoa/echo](http://hook.io/vrunoa/echo)\r\n[https://gist.github.com/vrunoa/560bb84d38e24078b66a](https://gist.github.com/vrunoa/560bb84d38e24078b66a)"}}