retry for uploading and downloading assets from API