ARTIFACTORY: How to avoid 403s when uploading files or modules to Hugging Face repositories

ARTIFACTORY: How to avoid 403s when uploading files or modules to Hugging Face repositories

AuthorFullName__c
Yonatan Hen
articleNumber
000006161
ft:sourceType
Salesforce
FirstPublishedDate
2024-08-05T05:41:02Z
lastModifiedDate
2024-08-05
VersionNumber
1
Introduction 
Users may encounter 403 errors when uploading files to Hugging Face repositories due to the default 10-minute expiration time of the signed URL. This issue is particularly prevalent on unstable network connections or when uploading large files to Hugging Face repositories.

Resolution
A new configuration property, artifactory.huggingfaceml.signed.url.expiration.time.secs, has been introduced, allowing users to extend the signed URL expiration time beyond the default 10 minutes in case of need up to 24 hours.

In order to change this behavior, please modify the property in $JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties as described below and restart Artifactory to apply the new configuration:

artifactory.huggingfaceml.signed.url.expiration.time.secs=<desired_time_in_seconds>

This fix is available from version 7.92.0, see our release notes for more details.