ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
11.73k stars 533 forks source link

I am getting an "Internal Server Error" error when launching ActivityWatch #844

Closed welovfree closed 1 year ago

welovfree commented 1 year ago

Describe the bug

I am getting an "Internal Server Error" error when launching ActivityWatch, or whenever I click on any option on the dashboard.

To Reproduce

Steps to reproduce the behavior, for example:

  1. Double click the ActivityWatch icon to launch the app
  2. The "Internal Server Error" error highlighted in a red rectangle shows up at the top.

Expected behavior

The data is expected to show up.

Documentation

Additional context

An image illustrating the error produced: Image showing the error

ErikBjare commented 1 year ago

Can't help without logs. Possibly a category issue.

On Tue, Jan 24, 2023, 08:52 welovfree @.***> wrote:

Describe the bug

I am getting an "Internal Server Error" error when launching ActivityWatch, or whenever I click on any option on the dashboard. To Reproduce

Steps to reproduce the behavior, for example:

  1. Double click the ActivityWatch icon to launch the app
  2. The "Internal Server Error" error highlighted in a red rectangle shows up at the top. Expected behavior

The data is expected to show up. Documentation Additional context

— Reply to this email directly, view it on GitHub https://github.com/ActivityWatch/activitywatch/issues/844, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKXDOQ2T5Y5DOI7NO7XJ5LWT6C4TANCNFSM6AAAAAAUEYGEEI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

welovfree commented 1 year ago

@ErikBjare Oh! you are right! It is indeed a category issue as I forgot to escape the "+" sign for this pattern "Learn C++" in:

Edit Category > Rule > Pattern

The problem is now fixed!

ErikBjare commented 1 year ago

Nice!

I might have to improve error messages here in the future, although the regex validation in v0.12.2b1 should help too.

Closing.