[PR #5759] fix nuisance timestamp error in API #13153

Closed
opened 2026-04-10 21:48:33 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5759

State: closed
Merged: Yes


I think there might be a race that triggers this too, because I've seen it once every 100 ish calls to the API but this should sort it out. The error is caused by the crdt clock not being set, and trying to sync regardless.

Error:

TypeError: Cannot read properties of undefined (reading 'timestamp')
    at _fullSync (/Users/x/actual-api-test/node_modules/@actual-app/api/dist/app/bundle.api.js:60079:35)

Repro script:

import * as api from '@actual-app/api';

async function test() {
    await api.init({
        dataDir: './data, 
        serverURL: 'http://localhost:5006',
        password: 'password' 
    });

    await api.shutdown();
}
**Original Pull Request:** https://github.com/actualbudget/actual/pull/5759 **State:** closed **Merged:** Yes --- I _think_ there might be a race that triggers this too, because I've seen it once every 100 ish calls to the API but this should sort it out. The error is caused by the crdt clock not being set, and trying to sync regardless. Error: ``` TypeError: Cannot read properties of undefined (reading 'timestamp') at _fullSync (/Users/x/actual-api-test/node_modules/@actual-app/api/dist/app/bundle.api.js:60079:35) ``` Repro script: ```js import * as api from '@actual-app/api'; async function test() { await api.init({ dataDir: './data, serverURL: 'http://localhost:5006', password: 'password' }); await api.shutdown(); } ```
GiteaMirror added the pull-request label 2026-04-10 21:48:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#13153