fixed missing argument and added check for exceptions when getting request token