Raise exception if token can't be retrieved