Skip to content

Category-builder gives 500 and traceback Unable to find bucket matching 'aw-watcher-window_unknown' #153

@tobixen

Description

@tobixen

Pressing the button for categorization builder and I get redirected to http://localhost:5600/#/settings/category-builder. On the top of the page it is written Unable to find bucket matching 'aw-watcher-window_unknown' (hostname filter set to 'None') (I'm quite sure that before restarting things it only said "Internal Server Error"). The traceback looks like this:

Traceback (most recent call last):
  File "/home/tobias/activitywatch/aw-server/aw_server/rest.py", line 320, in post
    result = current_app.api.query2(
        name, query["query"], query["timeperiods"], False
    )
  File "/home/tobias/activitywatch/aw-server/aw_server/api.py", line 348, in query2
    result.append(query2.query(name, query, starttime, endtime, self.db))
                  ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tobias/activitywatch/aw-core/aw_query/query2.py", line 418, in query
    interpret(var, val, namespace, datastore)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tobias/activitywatch/aw-core/aw_query/query2.py", line 392, in interpret
    namespace[var.name] = val.interpret(datastore, namespace)
                          ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tobias/activitywatch/aw-core/aw_query/query2.py", line 140, in interpret
    call_args.append(arg.interpret(datastore, namespace))
                     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tobias/activitywatch/aw-core/aw_query/query2.py", line 140, in interpret
    call_args.append(arg.interpret(datastore, namespace))
                     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tobias/activitywatch/aw-core/aw_query/query2.py", line 143, in interpret
    result = functions[self.name](*call_args)  # type: ignore
  File "/home/tobias/activitywatch/aw-core/aw_query/functions.py", line 88, in g
    return f(*args, **kwargs)
  File "/home/tobias/activitywatch/aw-core/aw_query/functions.py", line 117, in g
    return f(*args, **kwargs)
  File "/home/tobias/activitywatch/aw-core/aw_query/functions.py", line 141, in q2_find_bucket
    raise QueryFunctionException(
        f"Unable to find bucket matching '{filter_str}' (hostname filter set to '{hostname}')"
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions