Express app throws "SocketError: other side closed error"

My Express application occasionally throws the error SocketError: other side closed. What could be the cause?