KoaJS

PROJECTFOLDER/node_modules/koa/lib/application.js:147
    const onerror = err => ctx.onerror(err);
                               ^

TypeError: ctx.onerror is not a function
    at Array.onerror (PROJECTFOLDER/node_modules/koa/lib/application.js:147:32)
    at listener (PROJECTFOLDER/node_modules/on-finished/index.js:169:15)
    at onFinish (PROJECTFOLDER/node_modules/on-finished/index.js:100:5)
    at callback (PROJECTFOLDER/node_modules/ee-first/index.js:55:10)
    at ServerResponse.onevent (PROJECTFOLDER/node_modules/ee-first/index.js:93:5)
    at emitNone (events.js:111:20)
    at ServerResponse.emit (events.js:208:7)
    at onFinish (_http_outgoing.js:723:10)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

You may have put app.use(bodyParser) instead of app.use(bodyParser())