-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Errors occurred when importing .enex files #5382
Description
Description
Errors occured when I imported some .enex files.

some files that caused errors:
(please rename *.z01.zip to *.z01)
file1.zip
file2.zip
file2.z01.zip
TriliumNext Version
v0.91.2-beta
What operating system are you using?
Windows
What is your setup?
Local + server sync
Operating System Version
Windows 11 24h2
Error logs
20:53:01.591 DB size: 21164 KB
20:53:01.679 Becca (note cache) load took 5ms
20:53:01.695 {
"appVersion": "0.91.2-beta",
"dbVersion": 228,
"nodeVersion": "v20.18.1",
"syncVersion": 33,
"buildDate": "2024-12-22T12:46:46Z",
"buildRevision": "854ac816370dd9c859a5e5f18216641c126b6566",
"dataDirectory": "C:\Users\tangj\AppData\Roaming\trilium-data",
"clipperProtocolVersion": "1.0",
"utcDateTime": "2025-01-14T12:53:00.980Z"
}
20:53:01.696 CPU model: AMD Ryzen 5 5600X 6-Core Processor, logical cores: 12, freq: 3700 Mhz
20:53:01.696 Trusted reverse proxy: false
20:53:01.696 App HTTP server starting up at port 37840
20:53:01.703 Listening on port 37840
20:53:01.807 Registered global shortcut Ctrl+Alt+P for action createNoteIntoInbox
20:53:01.852 Generated CSRF token vWaqLeBN-QHIwfGEs8i8tmzScbxH6aF5l05U with secret _csrf=w6Ny2QQr46-FDxzUK2MHmoTh
20:53:02.009 200 GET /api/options with 9597 bytes took 0ms
20:53:02.010 200 GET /api/tree with 40511 bytes took 1ms
20:53:02.014 200 GET /api/keyboard-actions with 14449 bytes took 2ms
20:53:02.176 200 GET /api/script/widgets with 2 bytes took 1ms
20:53:02.229 200 GET /api/keyboard-shortcuts-for-notes with 2 bytes took 1ms
20:53:02.230 200 POST /api/tree/load with 14954 bytes took 1ms
20:53:02.829 200 GET /api/notes/Uy9uIOTKLUq5/blob with 155 bytes took 1ms
20:53:02.830 200 GET /api/note-map/Uy9uIOTKLUq5/backlink-count with 11 bytes took 1ms
20:53:03.137 200 GET /api/notes/LDE4EGJSXMpS/blob with 155 bytes took 0ms
20:53:03.138 200 POST /api/tree/load with 10961 bytes took 1ms
20:53:03.140 200 GET /api/notes/pv4Ndisnme2l/blob with 155 bytes took 0ms
20:53:03.143 200 POST /api/tree/load with 10126 bytes took 1ms
20:53:03.145 200 GET /api/notes/0Pf1nLZ8thHh/blob with 155 bytes took 0ms
20:53:03.146 200 POST /api/tree/load with 8291 bytes took 1ms
20:53:04.318 200 GET /api/script/startup with 2 bytes took 1ms
20:53:05.689 Table counts: notes: 264, revisions: 0, attachments: 1015, branches: 278, attributes: 466, etapi_tokens: 0, blobs: 1129
20:53:05.698 All consistency checks passed with no errors detected (took 9ms)
20:53:08.245 Sync failed: 'Request to POST https:///api/login/sync failed, error: Error: Client network socket disconnected before secure TLS connection was established', stack: Error: Request to POST https://api/login/sync failed, error: Error: Client network socket disconnected before secure TLS connection was established
at generateError (file:///D:/ProgramData/TriliumNextNotes/resources/app.asar/src/services/request.ts:230:12)
at ClientRequest. (file:///D:/ProgramData/TriliumNextNotes/resources/app.asar/src/services/request.ts:81:47)
at ClientRequest.emit (node:events:518:28)
at emitErrorEvent (node:_http_client:101:11)
at TLSSocket.socketErrorListener (node:_http_client:504:5)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
20:53:22.632 200 GET /api/search-templates with 16 bytes took 1ms
20:53:22.634 200 GET /api/search-templates with 16 bytes took 0ms
20:53:48.282 Sending message to all clients: {"type":"taskProgressCount","taskId":"Hk5h9qVpI3","taskType":"importNotes","data":{"safeImport":true,"shrinkImages":true,"textImportedAsText":true,"codeImportedAsCode":true,"explodeArchives":true,"replaceUnderscoresWithSpaces":true},"progressCount":0}
20:53:48.287 Created new note 'G7cJhIs0tjGV', branch 'Uy9uIOTKLUq5_G7cJhIs0tjGV' of type 'text', mime 'text/html'
20:53:49.055 Created new note '0334aRC33Ar0', branch 'G7cJhIs0tjGV_0334aRC33Ar0' of type 'text', mime 'text/html'
20:53:49.058 Sending message to all clients: {"type":"taskProgressCount","taskId":"Hk5h9qVpI3","taskType":"importNotes","data":{"safeImport":true,"shrinkImages":true,"textImportedAsText":true,"codeImportedAsCode":true,"explodeArchives":true,"replaceUnderscoresWithSpaces":true},"progressCount":1}
20:53:49.114 Created new note '03meeHG6R1o9', branch 'G7cJhIs0tjGV_03meeHG6R1o9' of type 'text', mime 'text/html'
20:53:49.116 Saving image 'wechat.png' as attachment into note '03meeHG6R1o9'
20:53:49.118 Saving image '20161102152858.png' as attachment into note '03meeHG6R1o9'
20:53:49.119 Saving image '1055519-20171115191138046-2003735126.png' as attachment into note '03meeHG6R1o9'
20:53:49.119 Saving image 'icon_weibo_24.png' as attachment into note '03meeHG6R1o9'
20:53:49.144 Resizing image of 1385 took 14ms
20:53:49.153 ERROR: Failed to resize image '1055519-20171115191138046-2003735126.png', stack: Error: unrecognised content at end of stream
at module.exports.SyncReader.process (D:\ProgramData\TriliumNextNotes\resources\app.asar\node_modules\pngjs\lib\sync-reader.js:43:11)
at module.exports (D:\ProgramData\TriliumNextNotes\resources\app.asar\node_modules\pngjs\lib\parser-sync.js:68:10)
at Object.exports.read (D:\ProgramData\TriliumNextNotes\resources\app.asar\node_modules\pngjs\lib\png-sync.js:7:10)
at Object.decode (file:///D:/ProgramData/TriliumNextNotes/resources/app.asar/node_modules/@jimp/js-png/src/index.ts:59:31)
at Function.fromBuffer (file:///D:/ProgramData/TriliumNextNotes/resources/app.asar/node_modules/@jimp/core/src/index.ts:350:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at resize (file:///D:/ProgramData/TriliumNextNotes/resources/app.asar/src/services/image.ts:211:19)
at shrinkImage (file:///D:/ProgramData/TriliumNextNotes/resources/app.asar/src/services/image.ts:189:28)
at processImage (file:///D:/ProgramData/TriliumNextNotes/resources/app.asar/src/services/image.ts:32:28)
20:53:49.168 Resizing image of 1753 took 20ms
20:53:49.170 Resizing image of 1038 took 22ms
20:53:49.210 Created new note 'cG4PUfR8cVqB', branch 'G7cJhIs0tjGV_cG4PUfR8cVqB' of type 'text', mime 'text/html'
20:53:49.212 Saving image 'watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3JvYmVydF9jaGVuMTk4OA==,size_16,color_FFFFFF,t_70' as attachment into note 'cG4PUfR8cVqB'
20:53:49.213 Saving image 'watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3JvYmVydF9jaGVuMTk4OA==,size_16,color_FFFFFF,t_70' as attachment into note 'cG4PUfR8cVqB'
20:53:49.213 Saving image 'watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3JvYmVydF9jaGVuMTk4OA==,size_16,color_FFFFFF,t_70' as attachment into note 'cG4PUfR8cVqB'
20:53:49.305 Resizing image of 12007 took 87ms
20:53:49.305 Resizing image of 11395 took 86ms
20:53:49.305 Resizing image of 15374 took 86ms
20:53:49.319 Created new note 'hLlTVN8XbeWa', branch 'G7cJhIs0tjGV_hLlTVN8XbeWa' of type 'text', mime 'text/html'
20:53:49.597 Created new note 'tjmZt5Z5BZSq', branch 'G7cJhIs0tjGV_tjmZt5Z5BZSq' of type 'text', mime 'text/html'
20:53:49.599 Sending message to all clients: {"type":"taskProgressCount","taskId":"Hk5h9qVpI3","taskType":"importNotes","data":{"safeImport":true,"shrinkImages":true,"textImportedAsText":true,"codeImportedAsCode":true,"explodeArchives":true,"replaceUnderscoresWithSpaces":true},"progressCount":5}
20:53:52.735 304 GET /api/clipper/handshake with 45 bytes took 1ms