Skip to content

Sync failed: Cannot read properties of undefined (reading 'utcDateChanged') #5063

@eliandoran

Description

@eliandoran

Sync fails with:

Sync failed: Cannot read properties of undefined (reading 'utcDateChanged')

Tested on Windows with desktop client v0.90.0-beta and server 0.63.6.

Exception is:

Sending message to all clients: {"type":"sync-pull-in-progress","lastSyncedPush":93971}
Sync failed: 'Cannot read properties of undefined (reading 'utcDateChanged')', stack: TypeError: Cannot read properties of undefined (reading 'utcDateChanged')
    at updateNormalEntity (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync_update.js:82:18)
    at updateEntity (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync_update.js:64:11)
    at Object.updateEntities (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync_update.js:45:17)
    at Function.<anonymous> (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync.js:228:63)
    at Function.sqliteTransaction (C:\Users\Elian\Projects\TriliumNext\node_modules\better-sqlite3\lib\methods\transaction.js:65:24)
    at Object.transactional (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sql.js:274:50)
    at C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync.js:226:41
    at step (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync.js:33:23)
    at Object.next (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync.js:14:53)
    at step (C:\Users\Elian\Projects\TriliumNext\dist\src\services\sync.js:18:139)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions