Skip to content

Conversation

hbhargava7
Copy link
Contributor

Fixes #42

Notion appears to have changed the API such that the enqueued backup task no longer returns the file download link upon export completion. Even when exporting manually through the settings page, the export finishes and pops up in the notifications panel, but the download link never appears (the export modal keeps spinning forever).

I have rewritten the backup script to query the notifications panel for the export completed notification. The script finds the correct export notification based on the timestamp of the export.

Caveat emptor: there is no way for the script to know for sure that the export notification corresponds to the request export. The script will just pick up the first new export after the export tasks is queued. So theoretically if another export finishes after the script starts but before the script's export job finishes, the backup workflow will pick up that one instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No task status, waiting. Task was: ...

2 participants