HfApi uploading fail

Hello, I am a newcomer to hugging face API. I am now trying to upload a folder to my repo. Here are my code and error. Can somebody figure out where is the problem? I already login the huggingface in advance. Thank you guys.

api = HfApi(token=token)

api.upload_folder(
    folder_path='Dataset/HOI4D_resample',
    repo_id='t2chiang/test',
    repo_type='dataset',
)