404 (127.0.0.1): GET /img/icons/apple-touch-icon-152x152.png HTTP/1.1 (flask:25)

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Domain
backend, frontend

Research direction

Start by reproducing the localhost:5600 UI error and inspect TimelineBarChart.vue at lines 45 and 99 alongside the reported aw-server log entries. Determine whether the missing icon requests are related to the TypeError and clarify the category export/import behavior; done means the chart loads without the reported exception and the relevant 404 behavior is understood.

Written by the indexing model from the issue text.

Description

AW: 0.11.0.2
OS: Archlinux x64.
Browser: Firefox

In my ~/.cache/activitywatch/log/aw-server/aw-server_2021-xxxx.log with following log for aw-server:

2021-08-02 04:50:39 [INFO ]: Using storage method: peewee  (aw_server.main:32)
2021-08-02 04:50:39 [INFO ]: Starting up...  (aw_server.main:37)
2021-08-02 04:50:40 [INFO ]: Using database file: /home/mizho/.local/share/activitywatch/aw-server/peewee-sqlite.v2.db  (aw_datastore.storages.peewee:116)
2021-08-02 04:50:40 [INFO ]:  * Running on http://localhost:5600/ (Press CTRL+C to quit)  (werkzeug:113)
2021-08-02 04:50:41 [INFO ]: Creating bucket 'aw-watcher-window_ZANM'  (aw_datastore.datastore.Datastore:52)
2021-08-02 04:50:41 [INFO ]: Creating bucket 'aw-watcher-afk_ZANM'  (aw_datastore.datastore.Datastore:52)
2021-08-02 04:50:51 [INFO ]: Received heartbeat, but bucket was previously empty, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:274)
2021-08-02 04:50:51 [INFO ]: Received heartbeat, but bucket was previously empty, inserting as new event. (bucket: aw-watcher-afk_ZANM)  (aw_server.api:274)
2021-08-02 04:51:08 [INFO ]: 404 (127.0.0.1): GET /img/icons/apple-touch-icon-152x152.png HTTP/1.1  (flask:25)
2021-08-02 04:54:10 [INFO ]: Creating bucket 'aw-watcher-web-firefox'  (aw_datastore.datastore.Datastore:52)
2021-08-02 04:54:14 [INFO ]: Received heartbeat, but bucket was previously empty, inserting as new event. (bucket: aw-watcher-web-firefox)  (aw_server.api:274)
2021-08-02 04:56:22 [INFO ]: Creating bucket 'aw-watcher-vim_ZANM'  (aw_datastore.datastore.Datastore:52)
2021-08-02 04:56:22 [INFO ]: Received heartbeat, but bucket was previously empty, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:274)
2021-08-02 05:00:23 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 05:03:20 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 05:05:07 [INFO ]: Creating bucket 'aw-watcher-web-chrome'  (aw_datastore.datastore.Datastore:52)
2021-08-02 05:05:12 [INFO ]: Received heartbeat, but bucket was previously empty, inserting as new event. (bucket: aw-watcher-web-chrome)  (aw_server.api:274)
2021-08-02 05:05:33 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 05:05:34 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:262)
2021-08-02 05:11:03 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 05:18:02 [INFO ]: Creating bucket 'aw-stopwatch'  (aw_datastore.datastore.Datastore:52)
2021-08-02 05:30:50 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 05:41:37 [INFO ]: 404 (127.0.0.1): GET /img/icons/android-chrome-192x192.png HTTP/1.1  (flask:25)
2021-08-02 05:46:57 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:262)
2021-08-02 05:55:37 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:262)
2021-08-02 06:01:14 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 06:10:34 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:262)
2021-08-02 06:14:19 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 06:17:14 [INFO ]: 404 (127.0.0.1): GET /img/icons/apple-touch-icon-152x152.png HTTP/1.1  (flask:25)
2021-08-02 06:22:40 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 06:23:09 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:262)
2021-08-02 06:33:59 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_ZANM)  (aw_server.api:262)
2021-08-02 06:34:40 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:262)
2021-08-02 06:35:36 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vim_ZANM)  (aw_server.api:262)

I've errors in the localhost:5600 UI such as:
TypeError: t is undefined. See dev console (F12) and/or server logs for more info.

TypeError: t is undefined
    datasets TimelineBarChart.vue:99
    Lodash 10
    value TimelineBarChart.vue:99
    value TimelineBarChart.vue:45
    VueJS 12
vue.runtime.esm.js:1888:12

The only probably relevant thing that it may contribute to this is I have custom (very simple) categorize which I have to each time export the latest and then import again.

First, is the 404 error in aw-server log related here, and how can I fix the seemingly vu.js icon issue?
Second, is there a better way than export/import the categories (if relevant)

Dominant language
Python
Stars
129
Forks
104
Avg merge
5d 14h
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-server

All issues in ActivityWatch/aw-server

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.