tursodatabase / tursodatabase/libsql-client-ts
offline sync error: Sync(InvalidPushFrameConflict(1, 7))
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 576
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have been encountering difficulties while testing a simple use case with offline write and remove sync. I've put together a simple test to demonstrate the issue I'm experiencing:
https://gist.github.com/younes200/28dd8abbaef48b52502f73e770c9d626
✓ turso init [575.68ms]
failed to sync 143 | }
144 | }
145 | }
146 | async sync() {
147 | this.#checkNotClosed();
148 | const rep = await this.#getDb().sync();
^
error: Sync(InvalidPushFrameConflict(1, 7))
I would be grateful if you could identify the problem for me.
Thanks you
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction linked in the issue and trace the client sync() entry point shown in the stack trace. Reproduce the offline write-and-remove sequence, then determine which operation produces InvalidPushFrameConflict(1, 7); done means the conflict is explained and the sync failure is corrected or covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sqlite, typescript
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100