Fix request api error.