# SageMaker - Getting file URL

**URL:** <https://discuss.dvc.org/t/sagemaker-getting-file-url/717>\
**Category:** Questions\
**Created:** [April 9, 2021, 5:01pm UTC](https://discuss.dvc.org/t/sagemaker-getting-file-url/717 "2021-04-09T17:01:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRebollo](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MRebollo](https://discuss.dvc.org/u/MRebollo)\
**Post date:** [April 9, 2021, 5:01pm UTC](https://discuss.dvc.org/t/sagemaker-getting-file-url/717/1 "2021-04-09T17:01:08Z")

</div>

Hi there,  
I am trying to get the url to my dvc remote data from SageMaker Studio by running the below code. However, I get the below error and have not been able to solve it. Any advice would be greatly appreciated.

!pip install dvc  
from dvc.api import get\_url

url = get\_url(  
repo=“[https://github.com/.../machine\_learning](https://github.com/.../machine_learning)”,  
path=“experiments/…/data.pkl”  
)  
print(url)

CloneError: Failed to clone repo ‘[https://github.com/.../machine\_learning](https://github.com/.../machine_learning)’ to ‘/tmp/tmpo6kgus\_3dvc-clone’

---

<div class="post-metadata">

**Author:** ![skshetry](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@skshetry](https://discuss.dvc.org/u/skshetry)\
**Post date:** [April 12, 2021, 8:11am UTC](https://discuss.dvc.org/t/sagemaker-getting-file-url/717/2 "2021-04-12T08:11:18Z")

</div>

Hi @MRebollo, could you please try cloning that git repo locally? DVC uses git underneath, so if that works, DVC should be able to clone the repo as well.
