Duplicate_space() HfHubHTTPError: 500 Server Error: Internal Server Error for url:

I get this error

HfHubHTTPError: 500 Server Error: Internal Server Error for url: (Request ID: Root=1-66aa7670-18a14a621f125b7930e0d8be;8066465b-b5de-4163-b530-126b359652b2)

Code:
from huggingface_hub import HfApi, login
api = HfApi()
repo_url = api.duplicate_space