actualbudget / actualbudget/actual

[Bug]: _fullSync requires more than 10 tries

Open
#8,816 0 comments 0 reactions 0 assignees View on GitHub
needs triage
Dominant language
TypeScript
Stars
28.7k
Forks
3k
Avg merge
2d 11h
Merged PRs (30d)
65

Description

### What happened?

I was trying to use actual-api to download a full sync from my server from an empty state. No matter what I do, I am always presented with `out-of-sync` error.

### How can we reproduce the issue?

My server has over 54000 transactions that need to be synced.

To reproduce:
- Have a server with over 60k messages
- Try to sync using actual API.

I figured the out-of-sync error shows up because the `diffTime` remains the same for all the messages while syncing but due to the paging nature the count easily goes over 10.

https://github.com/actualbudget/actual/blob/d4334cb6e6123f4d3bcea1ad6166608884c7e658/packages/loot-core/src/server/sync/index.ts#L769****

### Where are you hosting Actual?

Docker

### What browsers are you seeing the problem on?

Other

### Operating System

None

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.