libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

conn.sync() returns 404

Open resuni opened this issue 3 months ago • 1 comments

Trying to use conn.sync() based on this example returns the following error:

$ python3 sync_example.py 
Traceback (most recent call last):
  File "/path_redacted/sync_example.py", line 11, in <module>
    conn = libsql.connect("local.db", sync_url=url, auth_token=auth_token)
ValueError: sync error: failed to pull db export: status=404 Not Found, error=

I'm trying the example exactly as written, except I defined my url and auth_token explicitly without making the os.getenv() function calls.

Is this a bug or is the example wrong?

resuni avatar Sep 14 '25 15:09 resuni

After reviewing the example file I confirmed that it is functional, but it assumed prior knowledge that could frustrate new developers. I submitted PR #102 to add additional documentation for the example main.py file to make it friendlier for someone syncing an embedded replicas for the first time.

OrthelT avatar Sep 16 '25 06:09 OrthelT