tursodatabase / tursodatabase/libsql-client-ts

offline sync error: Sync(InvalidPushFrameConflict(1, 7))

Open
#319 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.