Unable to download all buckets in json format for export.
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- android, javascript, python
- Domain
- backend-api-design, mobile
Research direction
The issue is in the Android app's WebUI handling of large JSON exports. Start by examining the code that triggers the export in the web UI (likely JavaScript) and the Android native bridge that receives the save request. Look for the 'Export save requested' log in the Android codebase (aw-android repository) to find where the handoff fails. Test with a smaller export to see if size is the factor, and check the file-saving logic after the payload is logged.
Written by the indexing model from the issue text.
Description
-
I am on the latest ActivityWatch version available for Android through Google Play:
0.14.0b2. -
I have searched the issues of this repo and believe that this is not an exact duplicate.
Related Android issue: ActivityWatch/aw-android#143 - "Exporting and server not working". This report adds current-production-version reproduction details and a specific observed failure point.
-
OS name and version: Android 17 (Google Pixel 9)
-
ActivityWatch version: Android app
0.14.0b2(current Google Play production release); Web UI backendv0.14.0 (rust) -
Android package:
net.activitywatch.android
Describe the bug
On the current Google Play release, choosing Export all buckets as JSON appears to generate the complete export but never gives the user a way to save it. No Android Save/Create Document picker opens, Firefox/the download manager receives no download, and no file is saved. The application remains responsive and shows no error.
This is especially notable because the Google Play release notes for 0.14.0b2 say: fix: save bucket exports from the WebView instead of dropping them (#229). The save handoff still fails in this case.
To Reproduce
- Install/update ActivityWatch from Google Play; installed version in this report is
0.14.0b2. - Use a populated ActivityWatch database. In this case, the full JSON export is approximately 57 MB / 57,182,325 characters.
- Open ActivityWatch and navigate to Buckets.
- Choose Export all buckets as JSON.
- Observe that neither a browser/download-manager download nor an Android Save/Create Document picker appears.
- Wait several minutes; there is still no saved file or user-visible error.
Optional diagnostic reproduction:
adb logcat "WebUI:V" "*:S"
After triggering the export, the following is logged:
I WebUI: Export save requested: aw-bucket-export.json (application/json, 57182325 chars)
Expected behavior
Once the JSON export has been generated, the user should be able to save it. Either of these outcomes would be acceptable:
- The export is delivered to the browser/download manager, as it was previously; or
- An Android Save/Create Document picker opens and the user can choose a destination for the JSON file.
Documentation
Observed result
- No file is downloaded or saved.
- No Android Save/Create Document picker appears.
- Firefox, the default browser, receives no download.
- No user-visible error, AndroidRuntime exception, or crash occurs.
- The app remains responsive.
- No additional relevant
WebUIlog line appears after the 57,182,325-character "Export save requested" message.
Previous working behavior
Before the recent update, the same operation on the same device/data completed as a normal Firefox download and the JSON file was saved successfully.
Structured diagnostic observations
These observations are factual results of read-only testing; they are not a claim of root cause.
- Export generation completes. The Android-side log records a complete
57,182,325-character payload foraw-bucket-export.json. - The failure is after that logged handoff. After the message, there is no visible destination UI, download, saved file, error, or crash, even after waiting several minutes.
- Payload size may be relevant. The failed export is large (about 57 MB). Since the complete payload is logged as received, any size-related problem appears to occur after generation and transfer rather than during JSON generation.
- The local API is not a practical recovery route in this build. The local
/api/0/exportendpoint requires Bearer authentication, while the live UI did not expose API Authentication, an API key, or an "Open in browser" action.
Additional context
This may be related to aw-android#143, which reports failed JSON bucket export and inability to use the server from a browser. The current report is not intended to duplicate its general symptom; it provides a reproducible result from the current Google Play production release and shows that the full export payload reaches the Android export/save path before the user-facing save step fails to appear.
API-key/browser-access work has also been tracked in aw-android#145, which was closed by #156. The missing live UI controls are included here because they remove a potential authenticated-API workaround for the export failure, not as a proposed diagnosis of the export defect.
Diagnostics were performed without modifying ActivityWatch data. This report intentionally omits device serial numbers, API keys, account information, event contents, bucket contents, and other private data.
Documentation
Additional context
- Dominant language
- Python
- Stars
- 19.7k
- Forks
- 1.1k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 14
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ActivityWatch/activitywatch
-
Folder created in home directory (clashes with documented location)Possibly taken A pull request linked to this issue is open or already merged. Opentype: bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ActivityWatch/activitywatch#1418 · 5 comments ·
Maintainers usually reply within 4 days
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ActivityWatch/activitywatch#1568 · 1 comment ·
Maintainers usually reply within 4 days
-
type: bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ActivityWatch/activitywatch#1564 · 2 comments ·
Maintainers usually reply within 4 days
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
ActivityWatch/activitywatch#1563 · 1 comment ·
Maintainers usually reply within 4 days
-
type: bug
Difficulty 3/5 1-2 days Newbie friendliness 54/100
ActivityWatch/activitywatch#1538 · 7 comments ·
Maintainers usually reply within 4 days
All issues in ActivityWatch/activitywatch
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
comp/tools P2 tool/skills type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#159541 ·
Maintainers usually reply within 1 day
-
bot-triaged module: correctness (silent) module: cpu module: empty tensor module: loss triage review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
request-theme
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
LizardByte/ThemerrDB#10167 · 1 comment ·