I'm using async/await stuff (on latest Node - without babel or harmony flag), but I still get UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property ...
I also tried your provided example of middleware - logging response time, and it works. Please, can you help me with this issue?
+1 I have the same issue, composing the error handler with others middlewares using koa-compose and using that as event handler works but by itself it does not.
Hi, I'm trying to create simple error handling middleware like this:
I'm using async/await stuff (on latest Node - without babel or harmony flag), but I still get
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property ...
I also tried your provided example of middleware - logging response time, and it works. Please, can you help me with this issue?