# Unable to sync local storage (APIError)

**URL:** <https://community.labelstud.io/t/unable-to-sync-local-storage-apierror/275>\
**Category:** Label Studio SDK\
**Created:** [July 5, 2024, 4:14am UTC](https://community.labelstud.io/t/unable-to-sync-local-storage-apierror/275 "2024-07-05T04:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dang\_Ho](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/dang_ho/32/88_2.png) [@Dang\_Ho](https://community.labelstud.io/u/Dang_Ho)\
**Post date:** [July 5, 2024, 4:14am UTC](https://community.labelstud.io/t/unable-to-sync-local-storage-apierror/275/1 "2024-07-05T04:14:06Z")

</div>

```auto
from label_studio_sdk.client import LabelStudio
a = LabelStudio(api_key = "xxx")
a.import_storage.local.sync(id=1)

```

I tried to use the above function to sync the local storage to Label Studio, but it returned this error

> ApiError: status\_code: 404, body: {‘id’: ‘58d6b486-fdc0-43d8-99a7-759d87ca3ea9’, ‘status\_code’: 404, ‘version’: ‘1.12.1’, ‘detail’: ‘Not found.’, ‘exc\_info’: None}

Any ideas how to fix this, thanks alot

---

<div class="post-metadata">

**Author:** ![makseq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/makseq/32/26_2.png) [@makseq](https://community.labelstud.io/u/makseq)\
**Post date:** [July 10, 2024, 9:22am UTC](https://community.labelstud.io/t/unable-to-sync-local-storage-apierror/275/2 "2024-07-10T09:22:50Z")

</div>

You have to add a local storage first. This error indicates there is no such local storage with this id.
