Backup will fail if Quick Capture is not synced
serizawa-jp opened this issue · 2 comments
Hi. Thank you very much for making such a useful library.
There seems to be a problem with backup. If there are any Quick Capture Notes that you have not synced, a pop-up will appear on your Roam.
This caused the backup to fail. When I close this window, the backup now succeeds.
Every job was stopped by Checking for "Export All" option
.
Logs
Run cd ..
> puppeteer@5.5.0 install /home/runner/work/roambackup/roam2github/node_modules/puppeteer
> node install.js
Chromium (818858) downloaded to /home/runner/work/roambackup/roam2github/node_modules/puppeteer/.local-chromium/linux-818858
added 66 packages from 83 contributors and audited 66 packages in 10.854s
found 0 vulnerabilities
2021-02-07 05:05:01.067 R2G Create browser
2021-02-07 05:05:01.364 R2G Login
2021-02-07 05:05:01.367 R2G - Navigating to login page
2021-02-07 05:05:02.537 R2G - Checking for email field
2021-02-07 05:05:02.672 R2G - (Wait 10 seconds)
2021-02-07 05:05:12.676 R2G - Filling email field
2021-02-07 05:05:12.753 R2G - Filling password field
2021-02-07 05:05:12.830 R2G - Checking for "Sign In" button
2021-02-07 05:05:12.836 R2G - Clicking "Sign In"
2021-02-07 05:05:13.575 R2G Login successful!
2021-02-07 05:05:13.575 R2G Open graph s******a
2021-02-07 05:05:13.575 R2G - (Wait 1 second)
2021-02-07 05:05:14.576 R2G - Navigating away to 404 (workaround)
2021-02-07 05:05:14.628 R2G - (Wait 1 second)
2021-02-07 05:05:15.628 R2G - Navigating to graph
2021-02-07 05:05:16.193 R2G - astrolabe spinning...
2021-02-07 05:05:26.431 R2G - astrolabe spinning stopped
2021-02-07 05:05:26.478 R2G Graph loaded!
2021-02-07 05:05:26.478 R2G Export JSON
2021-02-07 05:05:26.483 R2G - Clicking "..." button
2021-02-07 05:05:26.531 R2G - Checking for "Export All" option
Error: The operation was canceled.
Thanks for the detailed report! I've now added a check for this Sync Quick Capture Notes popup. If detected, the script will close it without syncing the quick notes, and continue to run the backup normally. The popup will appear for you the next time you open Roam.
@everruler12 Thank you for your quick response! 😄 It will help many people who frequently use QuickCapture.