fix bug: API reqest from local environment should be with repo_token