Unable to sync local storage (APIError)

from label_studio_sdk.client import LabelStudio
a = LabelStudio(api_key = "xxx")

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

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