failing to retrieve token from server