Log erors and be robust in the request method