Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

java.util.NoSuchElementException: null #23

@bezustally

Description

@bezustally

On running command:

docker run \
    --rm=true \
    --env-file=.config/notion/backups/.env \
    ghcr.io/jckleiner/notion-backup

Getting this output:

23:25:51.256 [main] INFO com.greydev.notionbackup.NotionBackup - ---------------- Starting Notion Backup ----------------
23:25:51.425 [main] INFO com.greydev.notionbackup.NotionClient - Downloads will be saved to: /Users/bezustally/Downloads/
23:25:51.426 [main] INFO com.greydev.notionbackup.NotionClient - Using export type: markdown
23:25:51.426 [main] INFO com.greydev.notionbackup.NotionClient - Flatten export file tree: true
23:25:51.426 [main] INFO com.greydev.notionbackup.NotionClient - Export comments: true
23:25:52.616 [main] INFO com.greydev.notionbackup.NotionClient - taskId extracted
23:25:58.037 [main] ERROR com.greydev.notionbackup.NotionClient - An exception occurred:
java.util.NoSuchElementException: null
	at java.base/java.util.Collections$EmptyIterator.next(Collections.java:4210)
	at com.greydev.notionbackup.NotionClient.fetchDownloadUrl(NotionClient.java:209)
	at com.greydev.notionbackup.NotionClient.export(NotionClient.java:109)
	at com.greydev.notionbackup.NotionBackup.main(NotionBackup.java:65)
23:25:58.037 [main] INFO com.greydev.notionbackup.NotionClient - downloadLink could not be extracted
Exception in thread "main" java.lang.IllegalStateException: Could not export notion file
	at com.greydev.notionbackup.NotionBackup.lambda$main$0(NotionBackup.java:66)
	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
	at com.greydev.notionbackup.NotionBackup.main(NotionBackup.java:66)

How can I fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions