Not able to push dataset/model with write token


I’ve write permission to the access token but no way I am not able to push the dataset,

The above exception was the direct cause of the following exception:

HfHubHTTPError                            Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name)
    365                 + "make sure you have a token with the `write` role."
    366             )
--> 367             raise HfHubHTTPError(message, response=response) from e
    368 
    369         # Convert `HTTPError` into a `HfHubHTTPError` to display request information

HfHubHTTPError:  (Request ID: Root=1-66226ec8-1286b1bd29b6ddc07f8d3d8f;aa411d40-8031-4fc2-b698-44523b0d4e9e)

403 Forbidden: Forbidden: you must use a write token to upload to a repository..

Getting forbidden error, I am facing this everywhere.

1 Like

Got the same error as well. It works (can push at first try) on my test account but it didn’t work on my main account. Hope anyone can solve this.