That's a whole lot of next(err)

I strongly suspect all these next(err) were generating error responses with HTTP status code 200 instead of 500, those making on-page JS think the request actually succeeded when really it didn't.