{"action":"opened","issue":{"url":"https://api.github.com/repos/koajs/koa/issues/432","labels_url":"https://api.github.com/repos/koajs/koa/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/koajs/koa/issues/432/comments","events_url":"https://api.github.com/repos/koajs/koa/issues/432/events","html_url":"https://github.com/koajs/koa/issues/432","id":67434100,"number":432,"title":"Assert in ctx.onerror not caught","user":{"login":"litek","id":498351,"avatar_url":"https://avatars.githubusercontent.com/u/498351?v=3","gravatar_id":"","url":"https://api.github.com/users/litek","html_url":"https://github.com/litek","followers_url":"https://api.github.com/users/litek/followers","following_url":"https://api.github.com/users/litek/following{/other_user}","gists_url":"https://api.github.com/users/litek/gists{/gist_id}","starred_url":"https://api.github.com/users/litek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/litek/subscriptions","organizations_url":"https://api.github.com/users/litek/orgs","repos_url":"https://api.github.com/users/litek/repos","events_url":"https://api.github.com/users/litek/events{/privacy}","received_events_url":"https://api.github.com/users/litek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T19:30:10Z","updated_at":"2015-04-09T19:30:10Z","closed_at":null,"body":"I had a promise that rejected with a string as an error instead of a proper Error object. There is an [assert in context.js](https://github.com/koajs/koa/blob/c307c81c4313e13ed8464aafbccd1544e8ecf3a8/lib/context.js#L106), but it's never caught in [application.js](https://github.com/koajs/koa/blob/c307c81c4313e13ed8464aafbccd1544e8ecf3a8/lib/application.js#L128) so both the error string and the assert are silently swallowed and no response is sent to the client."}}