Client get 401 when calling to API