Unable to download all buckets in json format for export.
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- android, javascript, python
調査の方向性
問題は、AndroidアプリのWebUIで大きなJSONエクスポートを処理する部分にあります。まず、WebUIでエクスポートをトリガーするコード(おそらくJavaScript)と、保存リクエストを受け取るAndroidネイティブブリッジを調べてください。Androidのコードベース(aw-androidリポジトリ)でログ 'Export save requested' を検索し、受け渡しがどこで失敗しているかを特定してください。小さいエクスポートでテストしてサイズが要因かどうかを確認し、Payloadがログに出力された後のファイル保存ロジックを確認してください。
索引モデルが issue の本文から書いたものです。
説明
-
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
- 主要言語
- Python
- スター
- 19.7k
- フォーク
- 1.1k
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ActivityWatch/activitywatch のほかの issue
-
Folder created in home directory (clashes with documented location)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ActivityWatch/activitywatch#1418 · コメント 5 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ActivityWatch/activitywatch#1568 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
ActivityWatch/activitywatch#1564 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ActivityWatch/activitywatch#1563 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
ActivityWatch/activitywatch#1538 · コメント 7 件 ·
メンテナーはふだん 4 日以内に返信
ActivityWatch/activitywatch の issue をすべて見る
似ている issue
-
`gitlab_importer_v2` pipeline failing due to malformed YAML file対応中かも @Gowri213 が今日担当しました。 オープンbug Pipeline: Failure Priority: high
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
aboutcode-org/vulnerablecode#2523 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
intuitem/ciso-assistant-community#5380 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
confluentinc/cp-ansible#2767 ·
メンテナーはふだん 3 日以内に返信
-
bug docs
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信