401 error in making api request