activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

Events route not working

Open carlvaneijk opened this issue 9 months ago • 3 comments

  • [x] I am on the [latest] - v0.13.12 (https://github.com/ActivityWatch/activitywatch/releases/latest) ActivityWatch version.

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.

  • OS name and version: MacOS Sequoia 15.3.2

  • ActivityWatch version: v0.13.12

Describe the bug

The web plugin is not showing in the UI. However the Raw data is there. Whilst trying to diagnose the issue, clicking on web events shows an error in the UI.

UI Error

AxiosError: Request failed with status code 404. See dev console (F12) and/or server logs for more info.

Browser Console

The Console shows GET http://127.0.0.1:5600/api/0/buckets//events/1477 404 (NOT FOUND) (anonymous) @ axios.cjs:2406 xhr @ axios.cjs:2197 be @ axios.cjs:2524 request @ axios.cjs:2881 (anonymous) @ axios.cjs:2907 (anonymous) @ axios.cjs:6 (anonymous) @ aw-client.js:40 (anonymous) @ aw-client.js:8 (anonymous) @ aw-client.js:4 _get @ aw-client.js:38 (anonymous) @ aw-client.js:131 (anonymous) @ aw-client.js:8 (anonymous) @ aw-client.js:4 getEvent @ aw-client.js:129 (anonymous) @ VisTimeline.vue:133 d @ regeneratorRuntime.js:45 (anonymous) @ regeneratorRuntime.js:133 (anonymous) @ regeneratorRuntime.js:74 n @ asyncToGenerator.js:3 s @ asyncToGenerator.js:22 (anonymous) @ asyncToGenerator.js:27 (anonymous) @ asyncToGenerator.js:19 e @ VisTimeline.vue:144 t. @ asyncErrorCaptured.js:24 (anonymous) @ VisTimeline.vue:113 (anonymous) @ index.js:145 value @ ItemSet.js:2230 h @ propagating.js:207 e.emit @ hammer.esm.js:2711 i.emit @ hammer.esm.js:1844 e.tryEmit @ hammer.esm.js:1628 e.recognize @ hammer.esm.js:1681 e.recognize @ hammer.esm.js:2548 se @ hammer.esm.js:716 i.handler @ hammer.esm.js:940 domHandler @ hammer.esm.js:791 VisTimeline.vue:133

When I try to hit the API route directly...

Image Image

To Reproduce

Documentation

Logs don;t show anything helpfull..

Archive.zip

carlvaneijk avatar Mar 27 '25 13:03 carlvaneijk

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Mar 27 '25 13:03 github-actions[bot]

To add further context

I can get to the Events directly, so it appears that the watcher/ui is not specifying the bucket correctly.

http://127.0.0.1:5600/api/0/buckets/aw-watcher-web-opera_Carls-MacBook-Pro.local/events/1638

carlvaneijk avatar Mar 27 '25 13:03 carlvaneijk

  • Duplicate of https://github.com/ActivityWatch/aw-webui/issues/576

BelKed avatar Mar 27 '25 13:03 BelKed