kilianc/node-apiserver

Can't set headers after they are sent

Opened this issue · 0 comments

If any of the request is getting timeout we are getting 'Can't set headers after they are sent' error when we are returning response. To return response we are using return response.serveJSON() method . Is api server already returning response in case timeout? How to handle timeout?