libsql-experimental-python
libsql-experimental-python copied to clipboard
conn.sync() returns 404
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?
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.