* Fix connect, request function error return logic.