Open vmsavelyev opened 2 months ago
I've been receiving the same error as of late:
23:01:43.650 [main] INFO com.greydev.notionbackup.NotionBackup - ---------------- Starting Notion Backup ----------------
23:01:43.840 [main] INFO com.greydev.notionbackup.NotionClient - DOWNLOADS_DIRECTORY_PATH is not set. Downloads will be saved to: /downloads
23:01:43.841 [main] INFO com.greydev.notionbackup.NotionClient - Using export type: markdown
23:01:43.841 [main] INFO com.greydev.notionbackup.NotionClient - Flatten export file tree: false
23:01:43.841 [main] INFO com.greydev.notionbackup.NotionClient - Export comments: false
23:01:44.537 [main] INFO com.greydev.notionbackup.NotionClient - taskId extracted
23:01:44.828 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 2
23:01:51.310 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 61
23:01:57.556 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 126
23:02:03.815 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 188
23:02:10.056 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 220
23:02:16.296 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 299
23:02:22.556 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 24
23:02:28.787 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 48
23:02:35.019 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 79
23:02:41.260 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 449
23:02:47.502 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 598
23:02:53.757 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 670
23:03:00.001 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 732
23:03:06.241 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 772
23:03:12.482 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 815
23:03:18.766 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 861
23:03:25.003 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 904
23:03:31.234 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 953
23:03:37.470 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 979
23:03:43.755 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 1008
23:03:49.990 [main] INFO com.greydev.notionbackup.NotionClient - Notion API workspace export 'state': 'in_progress', Pages exported so far: 1044
Exception in thread "main" java.lang.NullPointerException
at com.greydev.notionbackup.NotionClient.getDownloadLink(NotionClient.java:213)
at com.greydev.notionbackup.NotionClient.export(NotionClient.java:113)
at com.greydev.notionbackup.NotionBackup.main(NotionBackup.java:65)
The workspace export was triggered in Notion though, since I'm getting the "Your workspace export is ready" notification inside Notion itself and can manually download the .zip file. The docker container did not download the export, probably because of the error which seems to pertain to getting the download link.
Do you see this error on each run or just sometimes? I could not reproduce the problem and I'm not sure why this happens. The export for my workspace seems to work fine.
I've added some more checks in #20, hopefully this will fix the export for you.
Hi
When I wrote my reply, the issue was on each run. When my script ran again this weekend it did work for html, but not for markdown (same error) (I run both at same time to have the backup in 2 different formats).
I just ran it manually again and both attempts now worked. So I'm not sure if it is permantely fixed now or maybe a temporary issue with a slow response from notion?
When I run actions it downs with error
22:15:08.776 [main] INFO com.greydev.notionbackup.NotionBackup - ---------------- Starting Notion Backup ---------------- 22:15:09.082 [main] INFO com.greydev.notionbackup.NotionClient - Downloads will be saved to: /tmp/ 22:15:09.083 [main] INFO com.greydev.notionbackup.NotionClient - Using export type: markdown 22:15:09.083 [main] INFO com.greydev.notionbackup.NotionClient - Flatten export file tree: false 22:15:09.083 [main] INFO com.greydev.notionbackup.NotionClient - Export comments: true 22:15:09.733 [main] INFO com.greydev.notionbackup.NotionClient - taskId extracted Exception in thread "main" java.lang.NullPointerException at com.greydev.notionbackup.NotionClient.getDownloadLink(NotionClient.java:213) at com.greydev.notionbackup.NotionClient.export(NotionClient.java:113) at com.greydev.notionbackup.NotionBackup.main(NotionBackup.java:65) Error: Process completed with exit code 1.