Skip to content

Issues with Error 500 on chat search #316

@kaeptenbalu

Description

@kaeptenbalu

Hi, first of all happy new year and thanks for developing this greate tool!!

Im using the telegram feeder (https://github.com/ail-project/ail-feeder-telegram) to feed the telegram data into ail.

Image

when i go to search -> Chats Search

Image

Im getting an error 500

Image

this are the flask logs:

2026-01-14 06:35:16,942 root WARNING:[email protected] search: telegram - "cloudflare" 2026-01-14 06:35:16,942 Flask_server ERROR:Exception on /search/chats [GET] Traceback (most recent call last): File "/home/dm/ail/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 1511, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dm/ail/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 919, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dm/ail/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dm/ail/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dm/ail/ail-framework/AILENV/lib/python3.12/site-packages/flask_login/utils.py", line 290, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dm/ail/ail-framework/var/www/Role_Manager.py", line 81, in decorated_view return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/dm/ail/ail-framework/var/www/blueprints/search_b.py", line 125, in search_chats r = search_engine.api_search_chats({'index': index, 'search': search, 'page': page, 'user_id': user_id}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dm/ail/ail-framework/bin/lib/search_engine.py", line 303, in api_search_chats result = Engine.search(indexes, to_search, page=page, nb=nb_per_page)

Im using

AIL-framework Status :
AIL Version master
Current Branch master
Current Commit ID 92cafba
Current Tag v6.6

OS:

Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble

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